Files
actions/.gitea/workflows/cog-release.yml
Mykhailo Nikiforov 50ff19fae2
All checks were successful
Cog release / Create release (push) Successful in 8s
chore(deps): cocogitto/cocogitto-action - checkout head sha
2026-01-04 01:41:25 +02:00

52 lines
1.3 KiB
YAML

---
name: Cog release
on:
push:
branches:
- main
workflow_call:
# inputs:
# check-latest-tag-only:
# type: boolean
# required: false
# default: true
jobs:
release:
name: Create release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}
- 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_path: ${{ steps.changelog.outputs.stdout }}
tag_name: ${{ steps.release.outputs.version }}