feat: add release template
This commit is contained in:
37
.gitea/workflows/release.yml
Normal file
37
.gitea/workflows/release.yml
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
name: Release
|
||||||
|
on:
|
||||||
|
workflow_call:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
release:
|
||||||
|
name: Create release
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- run: |
|
||||||
|
git config user.name gitea-bot
|
||||||
|
git config user.email bot@git.palkoi.net
|
||||||
|
git config --global user.email bot@git.palkoi.net
|
||||||
|
git config --global user.name gitea-bot
|
||||||
|
|
||||||
|
- name: Semver release
|
||||||
|
uses: cocogitto/cocogitto-action@v3
|
||||||
|
id: release
|
||||||
|
with:
|
||||||
|
release: true
|
||||||
|
git-user: "gitea-bot"
|
||||||
|
git-user-email: "bot@git.palkoi.net"
|
||||||
|
check-latest-tag-only: true
|
||||||
|
|
||||||
|
- name: Generate Changelog
|
||||||
|
run: cog changelog --at ${{ steps.release.outputs.version }} -t full_hash > GITHUB_CHANGELOG.md
|
||||||
|
|
||||||
|
- name: Upload github release
|
||||||
|
uses: softprops/action-gh-release@v2
|
||||||
|
with:
|
||||||
|
body_path: GITHUB_CHANGELOG.md
|
||||||
|
tag_name: ${{ steps.release.outputs.version }}
|
||||||
Reference in New Issue
Block a user