build: add auto release
This commit is contained in:
@@ -40,14 +40,27 @@ jobs:
|
|||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
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
|
- name: Semver release
|
||||||
uses: cocogitto/cocogitto-action@v3
|
uses: cocogitto/cocogitto-action@v3
|
||||||
id: release
|
id: release
|
||||||
with:
|
with:
|
||||||
release: true
|
release: true
|
||||||
git-user: "Gitea Bot"
|
git-user: "gitea-bot"
|
||||||
git-user-email: "bot@git.palkoi.net"
|
git-user-email: "bot@git.palkoi.net"
|
||||||
check-latest-tag-only: true
|
check-latest-tag-only: true
|
||||||
# The version number is accessible as a github action output
|
|
||||||
- name: Print version
|
- name: Generate Changelog
|
||||||
run: "echo '${{ steps.release.outputs.version }}'"
|
run: cog changelog --at ${{ steps.release.outputs.version }} -t full_hash > GITHUB_CHANGELOG.md
|
||||||
|
|
||||||
|
- name: Upload github release
|
||||||
|
uses: softprops/action-gh-release@v1
|
||||||
|
with:
|
||||||
|
body_path: GITHUB_CHANGELOG.md
|
||||||
|
tag_name: ${{ steps.release.outputs.version }}
|
||||||
|
|||||||
Reference in New Issue
Block a user