Skip to content

Commit

Permalink
ci: deploy docs when pushed to dev
Browse files Browse the repository at this point in the history
  • Loading branch information
raylim committed Jan 4, 2023
1 parent 5395b5f commit c506ca0
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,17 @@ jobs:
export LUNA_HOME=$PWD
mkdocs build
deploy-mkdocs:
runs-on: ubuntu-latest
if: github.event_name == 'push' && github.ref == 'refs/heads/dev'
needs: build
steps:
- name: Deploy docs
run: |
. ./venv/bin/activate
export LUNA_HOME=$PWD
mkdocs gh-deploy --force
release:
runs-on: ubuntu-latest
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
Expand Down Expand Up @@ -118,13 +129,3 @@ jobs:
password: ${{ secrets.PYPI_TOKEN }}
packages_dir: ./dist

deploy-mkdocs:
runs-on: ubuntu-latest
needs: release
steps:
- name: Deploy docs
run: |
. ./venv/bin/activate
export LUNA_HOME=$PWD
mkdocs gh-deploy --force

0 comments on commit c506ca0

Please sign in to comment.