feat: add release workflow for Gitea integration (!13)
All checks were successful
Release / Release (push) Successful in 37s
All checks were successful
Release / Release (push) Successful in 37s
Reviewed-on: #13 Reviewed-by: Phan Huy Tran <ptran@noreply.localhost> Co-authored-by: Jan Klattenhoff <jan@kjan.de> Co-committed-by: Jan Klattenhoff <jan@kjan.de>
This commit is contained in:
parent
25d7d30a7d
commit
8df1ec7ee1
31
.gitea/workflows/release.yml
Normal file
31
.gitea/workflows/release.yml
Normal file
@ -0,0 +1,31 @@
|
||||
name: Release
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
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 }}
|
12
release.config.cjs
Normal file
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"
|
||||
}],
|
||||
],
|
||||
};
|
Loading…
Reference in New Issue
Block a user