Skip to content

Commit 24e50bd

Browse files
committed
fix release and doc scripts
1 parent d01c870 commit 24e50bd

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

Diff for: .github/workflows/docs.yml

+6-3
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@ name: Docs
22

33
on:
44
pull_request:
5-
release:
6-
types: [published]
5+
push:
6+
tags:
7+
- '**'
78
workflow_dispatch:
89

910
concurrency:
@@ -15,6 +16,8 @@ jobs:
1516
runs-on: ubuntu-latest
1617
steps:
1718
- uses: actions/checkout@v4
19+
with:
20+
fetch-depth: 0
1821
# must come after checkout
1922
- uses: actions/setup-python@v5
2023
with:
@@ -27,7 +30,7 @@ jobs:
2730
path: 'doc/_build/html'
2831

2932
deploy:
30-
if: github.event_name == 'workflow_dispatch' || github.event_name == 'release'
33+
if: github.event_name == 'workflow_dispatch' || contains(github.event.ref, '/tags/')
3134
needs: build
3235
# Set permissions to allow deployment to GitHub Pages
3336
permissions:

Diff for: .github/workflows/publish.yml renamed to .github/workflows/release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Publish
1+
name: Release
22

33
on:
44
push:

0 commit comments

Comments
 (0)