Skip to content

Commit

Permalink
Only publish pages from main
Browse files Browse the repository at this point in the history
  • Loading branch information
volkerstampa committed Oct 27, 2023
1 parent a06acce commit 5580fca
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: '3.10'
python-version: "3.10"
- name: Install and configure Poetry
uses: snok/install-poetry@v1
with:
Expand All @@ -37,9 +37,9 @@ jobs:
poetry run make html
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.event_name == 'push' }}
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
with:
publish_branch: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/_build/html
force_orphan: true
force_orphan: true

0 comments on commit 5580fca

Please sign in to comment.