chore: add release workflow

This commit is contained in:
jdx 2025-07-27 13:44:52 -05:00
parent 07fb524adc
commit eccbf00da1
No known key found for this signature in database
GPG key ID: 584DADE86724B407

28
.github/workflows/release.yml vendored Normal file
View file

@ -0,0 +1,28 @@
name: Release
on:
pull_request:
types: [closed]
branches: [main]
permissions:
contents: write
jobs:
release:
if: github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'release')
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
with:
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}
- name: Setup mise
uses: jdx/mise-action@13abe502c30c1559a5c37dff303831bab82c9402 # v2
- name: Release
run: ./scripts/postversion.sh
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}