Skip to content

Commit 2f6a6e4

Browse files
authored
Merge pull request #240 from chrisrueger/do-github-pages-deployment-ourselves
add deploy github-pages section to ci-build
2 parents 6ed56c5 + ea18385 commit 2f6a6e4

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/cibuild.yml

Lines changed: 16 additions & 0 deletions
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)