Skip to content

Commit

Permalink
Adding more steps
Browse files Browse the repository at this point in the history
  • Loading branch information
Samreay committed Oct 9, 2023
1 parent 231d98d commit 25d9892
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 22 deletions.
23 changes: 22 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on:
pull_request:
types: [opened]
workflow_dispatch:
release:
types: [created]

defaults:
run:
Expand Down Expand Up @@ -35,4 +37,23 @@ jobs:
python-version: '3.10'
architecture: 'x64'
cache: 'poetry'
- run: make install
- run: make install
- run: make docs

push_docs:
runs-on: ubuntu-latest
needs: [build_docs]
if: |
github.event_name == 'release' || github.ref == 'refs/heads/master' || false
steps:
- uses: actions/checkout@v4
- run: pip install poetry
- uses: actions/setup-python@v4
with:
python-version: '3.10'
architecture: 'x64'
cache: 'poetry'
- run: make install
- run: make docs
- run: make pushdocs
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ serve:
docs:
poetry run mkdocs build

deploy:
pushdocs:
poetry run mkdocs gh-deploy --force

tests: test
Expand Down
24 changes: 4 additions & 20 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 25d9892

Please sign in to comment.