Skip to content

Commit 9a1e158

Browse files
committed
second attempt to fix version doc-build
1 parent fce1988 commit 9a1e158

File tree

1 file changed

+16
-11
lines changed

1 file changed

+16
-11
lines changed

.github/workflows/build_deploy_stable_docs.yaml

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ name: BuildDeployStableDocs
44
on:
55
# Runs when creating a new release
66
release:
7-
types: [created]
7+
types: [ created ]
88

99
# Allows you to run this workflow manually from the Actions tab
1010
workflow_dispatch:
@@ -25,10 +25,6 @@ jobs:
2525
# Build job
2626
build:
2727
runs-on: ubuntu-latest
28-
environment:
29-
name: github-pages
30-
url: ${{ steps.deployment.outputs.page_url }}
31-
3228
steps:
3329
- uses: actions/checkout@v4
3430
with:
@@ -41,23 +37,32 @@ jobs:
4137

4238
- uses: ./.github/actions/build-docs
4339

44-
- name: Setup Pages
45-
uses: actions/configure-pages@v5
40+
# - name: Setup Pages
41+
# uses: actions/configure-pages@v5
4642

4743
- name: Upload artifact
4844
uses: actions/upload-pages-artifact@v3
4945
with:
5046
path: 'docs/_site'
5147

52-
- name: Deploy to GitHub Pages
53-
id: deployment
54-
uses: actions/deploy-pages@v3
55-
5648
- name: Zip doc build
49+
if: startsWith(github.ref, 'refs/tags/')
5750
run: zip docs.zip docs/_site -r
5851

5952
- name: Upload release docs
6053
uses: softprops/action-gh-release@v2
6154
if: startsWith(github.ref, 'refs/tags/')
6255
with:
6356
files: docs.zip
57+
58+
deploy:
59+
runs-on: ubuntu-latest
60+
needs: build
61+
environment:
62+
name: github-pages
63+
url: ${{ steps.deployment.outputs.page_url }}
64+
65+
steps:
66+
- name: Deploy to GitHub Pages
67+
id: deployment
68+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)