File tree Expand file tree Collapse file tree 1 file changed +72
-0
lines changed
Expand file tree Collapse file tree 1 file changed +72
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Helm Repo Build and Deploy
2+
3+ on :
4+ workflow_dispatch :
5+
6+ permissions :
7+ contents : read
8+ pages : write
9+ id-token : write
10+
11+ concurrency :
12+ group : " pages"
13+ cancel-in-progress : false
14+
15+ jobs :
16+ build :
17+ runs-on : ubuntu-latest
18+ steps :
19+ - name : Harden the runner (Audit all outbound calls)
20+ uses : step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
21+ with :
22+ egress-policy : audit
23+
24+ - name : Checkout
25+ id : checkout-gh-pages
26+ uses : actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
27+ with :
28+ ref : gh-pages
29+ submodules : recursive
30+ token : ${{ secrets.GITHUB_TOKEN }}
31+
32+ - name : Build with Jekyll
33+ uses : actions/jekyll-build-pages@44a6e6beabd48582f863aeeb6cb2151cc1716697 # v1.0.13
34+ with :
35+ source : .
36+ destination : ./_site
37+ build_revision : ${{ steps.checkout-gh-pages.outputs.commit }}
38+ verbose : true
39+
40+ - name : Upload artifact
41+ uses : actions/upload-pages-artifact@7b1f4a764d45c48632c6b24a0339c27f5614fb0b # v4.0.0
42+ with :
43+ path : ./_site
44+ name : github-pages
45+ retention-days : 1
46+
47+ report-build-status :
48+ runs-on : ubuntu-latest
49+ needs : build
50+ if : always()
51+ steps :
52+ - name : Report build status
53+ env :
54+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
55+ CONCLUSION : ${{ needs.build.result }}
56+ run : |
57+ gh api -X POST "repos/$GITHUB_REPOSITORY/pages/telemetry" \
58+ -F github_run_id="$GITHUB_RUN_ID" \
59+ -F conclusion="$CONCLUSION"
60+
61+ deploy :
62+ environment :
63+ name : github-pages
64+ url : ${{ steps.deployment.outputs.page_url }}
65+ runs-on : ubuntu-latest
66+ needs : build
67+ steps :
68+ - name : Deploy to GitHub Pages
69+ id : deployment
70+ uses : actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4.0.5
71+ with :
72+ artifact_name : github-pages
You can’t perform that action at this time.
0 commit comments