feat: Add releases
All checks were successful
Build and Push Docker Image / Build (push) Successful in 1m55s

This commit is contained in:
Jan K9f 2025-09-11 15:24:10 +02:00
commit 794c528c3c
Signed by: jank
GPG key ID: 22BEAC760B3333D6
2 changed files with 66 additions and 0 deletions

View file

@ -0,0 +1,47 @@
name: Release
on:
workflow_dispatch:
jobs:
release:
name: Release
runs-on: ubuntu-latest
env:
GITEA_DOMAIN: git.kjan.de # Your Gitea instance domain
GIT_EMAIL: "gitea-actions@git.kjan.de" # Valid email for Git config
GIT_USERNAME: "Gitea Actions" # Name for Git config
SKIP_MERGE: false # Set to true to skip merging back to main
TARGET_BRANCH: main #Branch to merge into
RELEASE_BRANCH: release # The name of the release branch
permissions:
contents: write
issues: write
pull-requests: write
id-token: write
steps:
- name: Create Release
uses: https://git.kjan.de/actions/semantic-release@main
id: semantic
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
- name: Make changes
if: ${{ steps.semantic.outputs.new_release_published }}
run: |
git config --local user.email "forgejo@kjan.email"
git config --local user.name "forgejo[bot]"
git add docs/
git commit -m "chore(release): [skip ci]"
continue-on-error: true
- name: Push changes
uses: ad-m/github-push-action@master
continue-on-error: true
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: main

19
release.config.cjs Normal file
View file

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