feat: Add releases
All checks were successful
Build and Push Docker Image / Build (push) Successful in 1m55s
All checks were successful
Build and Push Docker Image / Build (push) Successful in 1m55s
This commit is contained in:
parent
7cad2bc64b
commit
794c528c3c
2 changed files with 66 additions and 0 deletions
47
.forgejo/workflows/release.yml
Normal file
47
.forgejo/workflows/release.yml
Normal 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
19
release.config.cjs
Normal 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",
|
||||
},
|
||||
],
|
||||
],
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue