File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 7373 name : generated-docs-html
7474 path : docs/build/html
7575
76- staeg :
76+ stage :
7777 name : Stage
7878 runs-on : ubuntu-latest
7979 needs :
@@ -103,7 +103,7 @@ jobs:
103103 - name : Ensure any previous documentation for this branch is removed
104104 run : rm -rf "./${{ github.ref_name }}"
105105
106- - name : Download the artifact from the previous job
106+ - name : Download the artifact from the build job
107107 uses : actions/download-artifact@v4
108108 with :
109109 name : generated-docs-html
@@ -126,3 +126,26 @@ jobs:
126126 git add .;
127127 git commit --allow-empty -m "Build ${{ github.ref_name }} from ${{ github.sha }}";
128128 git push origin static/docs;
129+
130+ upload-release-asset :
131+ name : Upload Release Asset
132+ runs-on : ubuntu-latest
133+ needs :
134+ - build
135+ if : github.ref_type == 'tag'
136+ steps :
137+ - name : Download the artifact from the previous job
138+ uses : actions/download-artifact@v4
139+ with :
140+ name : generated-docs-html
141+ path : " .build/${{ github.ref_name }}"
142+
143+ - name : Archive the built documentation
144+ run : |
145+ cd .build/${{ github.ref_name }} && tar -czvf ../documentation.tar.gz *
146+
147+ - name : Upload the documentation as a release asset
148+ uses : softprops/action-gh-release@c062e08bd532815e2082a85e87e3ef29c3e6d191
149+ with :
150+ files : .build/documentation.tar.gz
151+ tag_name : ${{ github.ref_name }}
You can’t perform that action at this time.
0 commit comments