Skip to content

Commit f40bf4c

Browse files
Update and rename deploy-pages.yml to attestations.yml
1 parent 7c11d41 commit f40bf4c

2 files changed

Lines changed: 52 additions & 44 deletions

File tree

.github/workflows/attestations.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
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

.github/workflows/deploy-pages.yml

Lines changed: 0 additions & 44 deletions
This file was deleted.

0 commit comments

Comments
 (0)