Files
actions/.gitea/workflows/cog-release.yml
Mykhailo Nikiforov b9f9f87068
All checks were successful
Cog release / Create release (push) Successful in 9s
feat: add release job
2026-01-04 02:23:22 +02:00

49 lines
1.2 KiB
YAML

---
name: Cog release
on:
workflow_call:
inputs:
ref:
type: string
required: false
default: ""
jobs:
release:
name: Create release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
ref: ${{ inputs.ref == '' && github.sha || inputs.ref }}
- 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@v4
id: release
with:
command: bump
args: --auto
git-user: "gitea-bot"
git-user-email: "bot@git.palkoi.net"
- name: Generate Changelog
id: changelog
uses: cocogitto/cocogitto-action@v4
with:
command: changelog
args: --at ${{ steps.release.outputs.version }} -t full_hash
- name: Upload github release
uses: softprops/action-gh-release@v2
with:
body: ${{ steps.changelog.outputs.stdout }}
tag_name: ${{ steps.release.outputs.version }}