File tree Expand file tree Collapse file tree 1 file changed +16
-11
lines changed
Expand file tree Collapse file tree 1 file changed +16
-11
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ name: BuildDeployStableDocs
44on :
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 :
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
You can’t perform that action at this time.
0 commit comments