.github/workflows/release.yml #30
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
workflow_dispatch: | |
branches: main | |
jobs: | |
release: | |
name: Perform release | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Cocogitto release | |
id: release | |
uses: cocogitto/[email protected] | |
with: | |
release: true | |
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 }} |