diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d10827b2..575955eb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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' @@ -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 -