Skip to content

feat: artifact attestations to establish provenance for builds #10

feat: artifact attestations to establish provenance for builds

feat: artifact attestations to establish provenance for builds #10

Workflow file for this run

# SPDX-FileCopyrightText: 2024 The Forkbomb Company
#
# SPDX-License-Identifier: AGPL-3.0-or-later
name: Deploy and Release
on:
push:
branches:
- main
concurrency:
group: "pages"
cancel-in-progress: false
permissions:
pages: write
id-token: write
contents: write
issues: write
pull-requests: write
attestations: write
jobs:
deploy:
environment:
name: Demo
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/configure-pages@v5
- uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- run: bun install
- run: bun run build
- run: cp dist/index.html pqspread.html
- uses: actions/upload-pages-artifact@v3
with:
path: dist
- uses: actions/attest-build-provenance@v1
with:
subject-path: pqspread.html
- uses: actions/deploy-pages@v4
id: deployment
- run: bun add -g semantic-release
- run: bun add -D @semantic-release/changelog @semantic-release/commit-analyzer @semantic-release/release-notes-generator @semantic-release/git @semantic-release/github
- uses: actions/setup-node@v3
with:
node-version: latest
- run: semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}