build: add release workflow configuration file

This commit is contained in:
Jan Gleytenhoover 2025-01-21 11:25:23 +01:00
parent 8302387aa7
commit 74d6cd8329
Signed by: jank
GPG key ID: 50620ADD22CD330B

View file

@ -0,0 +1,32 @@
name: Release
on:
push:
branches:
- prod
env:
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
permissions:
contents: read # for checkout
concurrency:
group: ${{ github.ref }} # Ensure each branch has its own group
cancel-in-progress: false # Prevent new runs from canceling in-progress runs
jobs:
release:
name: Release
runs-on: ubuntu-latest
permissions:
contents: write # to be able to publish a GitHub release
issues: write # to be able to comment on released issues
pull-requests: write # to be able to comment on released pull requests
id-token: write # to enable use of OIDC for npm provenance
steps:
- name: Create Release
uses: https://git.kjan.de/actions/semantic-release@main
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}