Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 4 additions & 10 deletions .github/workflows/website.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ on:
pull_request:
branches:
- main
types:
- closed


permissions:
Expand Down Expand Up @@ -36,9 +34,10 @@ jobs:

- name: Install development and distributions version
run: |
pip install --upgrade pip
pip install --upgrade pip pip-tools
git submodule update --init --recursive
pip install ".[docs]"
pip-compile pyproject.toml --extra docs -o requirements_docs.txt
pip install -r requirements_docs.txt

# - name: Setup pandoc
# uses: siacodelabs/setup-pandoc@v1
Expand All @@ -60,12 +59,7 @@ jobs:
# still need to build and set the PAT to get a rebuild on the pages job,
# apart from that quite clean and nice
- name: GitHub Pages Action
if: |
(github.event_name == 'push' && github.ref == 'refs/heads/main') ||
(github.event_name == 'pull_request' &&
github.event.action == 'closed' &&
github.event.pull_request.merged == true &&
github.event.pull_request.base.ref == 'main')
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
Expand Down