Skip to content

Commit

Permalink
actions
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewSteen committed Jan 22, 2024
1 parent 58d6682 commit 26cf385
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: continuous deployment

on:
workflow_dispatch

# required to push to gh-pages branch
permissions:
contents: write

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# error without:
# ! [rejected] gh-pages -> gh-pages (fetch first)
with:
fetch-depth: 0
- uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: install dependencies
run: pip install mkdocs
- name: deploy
run: mkdocs gh-deploy
17 changes: 17 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: continuous integration

on:
pull_request

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: install dependencies
run: pip install mkdocs
- name: build
run: mkdocs build

0 comments on commit 26cf385

Please sign in to comment.