.github/workflows/publish.yml
name: publish
on:
push:
tags: [v*.*.*]
jobs:
publish:
runs-on: ubuntu-latest
timeout-minutes: 10
permissions:
contents: write
id-token: write
attestations: write
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- run: bun install --frozen-lockfile
- run: bun run build
- run: bun run lint
- run: bun run test
- run: zip -jv chrome-extension.zip dist/*
- uses: actions/attest-build-provenance@v1
with:
subject-path: chrome-extension.zip
- run: gh release create "${{ github.ref_name }}" chrome-extension.zip --draft --generate-notes
shell: bash
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}