File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Deploy to GitHub Pages
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+
8+ jobs :
9+ # Build job
10+ build :
11+ runs-on : ubuntu-latest
12+ permissions :
13+ id-token : write
14+ attestations : write
15+ contents : read
16+ steps :
17+ - name : Checkout repository
18+ uses : actions/checkout@v4
19+ - name : " Install dependencies"
20+ run : npm install
21+ - name : " Build site"
22+ run : npm run build
23+ - name : " Deploy to GitHub Pages"
24+ uses : actions/upload-pages-artifact@v3.0.1
25+ with :
26+ path : dist
27+ - name : Attest Build Provenance
28+ uses : actions/attest-build-provenance@v1
29+ with :
30+ subject-path : " dist"
31+
32+ # Deploy job
33+ # deploy:
34+ # # Add a dependency to the build job
35+ # needs: build
36+
37+ # # Grant GITHUB_TOKEN the permissions required to make a Pages deployment
38+ # permissions:
39+ # pages: write # to deploy to Pages
40+ # id-token: write # to verify the deployment originates from an appropriate source
41+
42+ # Deploy to the github-pages environment
43+ # environment:
44+ # url: ${{ steps.deployment.outputs.page_url }}
45+ # name: github-pages
46+
47+ # Specify runner + deployment step
48+ # runs-on: ubuntu-latest
49+ # steps:
50+ # - name: Deploy to GitHub Pages
51+ # id: deployment
52+ # uses: actions/deploy-pages@v4 # or specific "vX.X.X" version tag for this action
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments