From ab680a7b19e1a30252e49bac05cd337cb76c41fe Mon Sep 17 00:00:00 2001 From: Hans Dembinski Date: Mon, 10 Jan 2022 22:40:40 +0100 Subject: [PATCH] fix release workflow --- .github/workflows/sphinx.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/sphinx.yml b/.github/workflows/sphinx.yml index 6f1938e..79ec122 100644 --- a/.github/workflows/sphinx.yml +++ b/.github/workflows/sphinx.yml @@ -1,6 +1,7 @@ on: pull_request: release: + types: [published] jobs: doc: @@ -13,7 +14,7 @@ jobs: - run: python -m pip install -e .[doc] - run: python doc/build.py - uses: peaceiris/actions-gh-pages@v3 - if: github.ref == 'refs/heads/main' + if: ${{ github.ref == 'refs/heads/main' }} with: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: doc/_build/html