Skip to content

.github/workflows/release.yml #23

.github/workflows/release.yml

.github/workflows/release.yml #23

Workflow file for this run

on:
workflow_dispatch:
branches: main
jobs:
release:
name: Perform release
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Cocogitto release
id: release
uses: cocogitto/[email protected]
with:
release: true
git-user: 'Cog Bot'
git-user-email: '[email protected]'
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@v1
with:
body_path: GITHUB_CHANGELOG.md
tag_name: ${{ steps.release.outputs.version }}
token: ${{ secrets.GITHUB_TOKEN }}