Skip to content

Commit ea18385

Browse files
committed
add deploy github-pages section to ci-build
but only on master Signed-off-by: Christoph Rueger <chrisrueger@gmail.com>
1 parent 6ed56c5 commit ea18385

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/cibuild.yml

+16
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,21 @@ jobs:
4949
- name: Build
5050
run: |
5151
./.github/scripts/docs.sh
52+
53+
- name: Upload artifact
54+
# Automatically uploads an artifact from the './_site' directory by default
55+
uses: actions/upload-pages-artifact@v3
5256

5357

58+
# Deployment job
59+
deploy:
60+
environment:
61+
name: github-pages
62+
url: ${{ steps.deployment.outputs.page_url }}
63+
runs-on: ubuntu-latest
64+
needs: GitHub_Pages
65+
if: github.ref == 'refs/heads/master' # <= Restrict deploy to master
66+
steps:
67+
- name: Deploy to GitHub Pages
68+
id: deployment
69+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)