Skip to content

Commit 641334a

Browse files
committed
CI: Add deploy step in doc-build
1 parent 8284627 commit 641334a

File tree

1 file changed

+8
-24
lines changed

1 file changed

+8
-24
lines changed

.github/workflows/ci_cd.yml

+8-24
Original file line numberDiff line numberDiff line change
@@ -93,28 +93,12 @@ jobs:
9393
path: doc/_build/latex
9494
retention-days: 7
9595

96-
release:
97-
if: github.event_name == 'refs/heads/main' && !contains(github.ref, 'refs/tags')
98-
needs: [doc-build, doc-style]
99-
runs-on: ubuntu-latest
100-
steps:
101-
- uses: actions/checkout@v4
102-
103-
- uses: actions/download-artifact@v4
104-
105-
- name: Display structure of downloaded files
106-
run: ls -R
107-
108-
- name: Zip HTML documentation
109-
uses: vimtor/action-zip@v1.2
110-
with:
111-
files: documentation-html
112-
dest: documentation-html.zip
113-
114-
- name: Release
115-
uses: softprops/action-gh-release@v2
96+
- name: Deploy
97+
if: contains(github.ref, 'refs/heads/main')
98+
uses: JamesIves/github-pages-deploy-action@v4.6.3
11699
with:
117-
generate_release_notes: true
118-
files: |
119-
./documentation-html.zip
120-
./documentation-pdf/*.pdf
100+
token: ${{ secrets.GITHUB_TOKEN }}
101+
branch: gh-pages
102+
folder: doc/_build/html
103+
clean: true
104+
single-commit: true

0 commit comments

Comments
 (0)