ci: generate release notes for Github release #13
Workflow file for this run
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
name: create-packages | |
on: | |
push: | |
tags: | |
- 'v*' | |
env: | |
GH_TOKEN: ${{ github.token }} | |
VERSION: ${{ github.ref_name }} | |
jobs: | |
build-deb: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- run: sudo apt install make ruby-rubygems -y | |
- run: sudo gem install --no-document fpm | |
- name: create a deb package | |
run: make deb | |
- name: create a Shiv bundle | |
run: make bundle | |
- name: generate release notes for the latest release | |
run: git-cliff --latest > release-notes.txt | |
- name: create a github release | |
run: gh release create $VERSION --generate-notes --notes-file release-notes.txt bin/* |