feat: add release workflow and configuration files
All checks were successful
Release / Release (push) Successful in 46s

This commit is contained in:
Jan Gleytenhoover 2024-08-26 14:29:38 +02:00
parent 03484641b4
commit 2d9b0641aa
Signed by: jank
GPG Key ID: B267751B8AE29EFE
2 changed files with 38 additions and 0 deletions

@ -0,0 +1,26 @@
name: Release
on:
push:
env:
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
permissions:
contents: read # for checkout
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 }}

12
release.config.cjs Normal file

@ -0,0 +1,12 @@
module.exports = {
branches: ['main'],
plugins: [
'@semantic-release/commit-analyzer',
'@semantic-release/release-notes-generator',
'@semantic-release/changelog',
["@saithodev/semantic-release-gitea", {
"giteaUrl": "https://git.kjan.de"
}],
],
};