Skip to content

Commit

Permalink
fix release and doc scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
HDembinski committed Feb 12, 2024
1 parent d01c870 commit 24e50bd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ name: Docs

on:
pull_request:
release:
types: [published]
push:
tags:
- '**'
workflow_dispatch:

concurrency:
Expand All @@ -15,6 +16,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
# must come after checkout
- uses: actions/setup-python@v5
with:
Expand All @@ -27,7 +30,7 @@ jobs:
path: 'doc/_build/html'

deploy:
if: github.event_name == 'workflow_dispatch' || github.event_name == 'release'
if: github.event_name == 'workflow_dispatch' || contains(github.event.ref, '/tags/')
needs: build
# Set permissions to allow deployment to GitHub Pages
permissions:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Publish
name: Release

on:
push:
Expand Down

0 comments on commit 24e50bd

Please sign in to comment.