ci: Copy git-cliff as binary package #19
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 update -y | |
- run: sudo apt install make ruby-rubygems -y | |
- run: sudo gem install --no-document fpm | |
- run: pip install setuptools shiv | |
- run: wget "https://github.com/orhun/git-cliff/releases/download/v1.4.0/git-cliff-1.4.0-x86_64-unknown-linux-gnu.tar.gz" | |
- run: tar -xvzf git-cliff-*.tar.gz | |
- name: create a deb package | |
run: make deb | |
- name: generate release notes for the latest release | |
run: ./git-cliff/git-cliff --latest > release-notes.txt | |
- name: create a github release | |
run: gh release create $VERSION --notes-file release-notes.txt bin/* |