Skip to content

release: 0.1.0

release: 0.1.0 #1

Workflow file for this run

name: Release
on:
workflow_dispatch:
inputs:
version:
description: ""
required: true
default: "keep current"
type: choice
options:
- "keep current"
push:
tags:
- "v*.*.*"
concurrency: ${{ github.workflow }}-${{ github.ref }}
env:
default_node_version: "lts/*"
default_pnpm_version: "latest"
artifact_name: build_${{ github.sha }}
jobs:
build:
name: Build
uses: ./.github/workflows/build.yml
sign:
needs: build
timeout-minutes: 30
name: Sign
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: ${{ env.default_pnpm_version }}
- uses: actions/setup-node@v4
with:
node-version: ${{env.default_node_version}}
cache: pnpm
- name: Install Dependencies
run: pnpm i
- name: Build
run: |
pnpm build
- name: Sign
env:
WEB_EXT_API_KEY: ${{ secrets.WEB_EXT_API_KEY }}
WEB_EXT_API_SECRET: ${{ secrets.WEB_EXT_API_SECRET }}
run: |
pnpm sign
release:
name: Release
needs: sign
runs-on: ubuntu-latest
permissions:
contents: write
discussions: write
steps:
- name: Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
generate_release_notes: true
discussion_category_name: "Announcements"