Skip to content

Commit

Permalink
CI: fix docs build and deploy workflow
Browse files Browse the repository at this point in the history
The deploy was not triggered when a tag is pushed.
  • Loading branch information
dnicolodi committed Apr 17, 2024
1 parent b1a5a5a commit c35f2d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
python-version: '3.11'
- uses: actions/checkout@v4
with:
ref: ${{ github.event.push.tag || github.event.inputs.tag }}
ref: ${{ github.event.inputs.tag || github.ref }}
- run: python -m pip install .[docs]
- run: python -m sphinx -W docs/ build/docs/
- uses: actions/upload-pages-artifact@v3
Expand All @@ -46,6 +46,6 @@ jobs:
environment:
name: github-pages
runs-on: ubuntu-latest
if: ${{ github.event.push.tag || github.event.inputs.tag }}
if: ${{ github.event_name == 'workflow_dispatch' || github.ref_type == 'tag' }}
steps:
- uses: actions/deploy-pages@v4

0 comments on commit c35f2d0

Please sign in to comment.