π test workflow #4
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: Build and Release package | |
on: | |
push: tags | |
jobs: | |
create_release: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
packages: write | |
steps: | |
- name: Create release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
tag: ${{ github.ref_name }} | |
run: | | |
gh release create "${{ github.ref_name }}" \ | |
--repo="$GITHUB_REPOSITORY" \ | |
--title="${{ github.ref_name }}" \ | |
--generate-notes | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/[email protected] | |
- name: Install dependencies | |
run: sudo apt -y install rubygems && sudo gem install fpm && sudo apt install binutils | |
- name: Build | |
run: make build-package | |
- name: Debug | |
run: ls -al ./build/dist/ | |
- name: Upload files to a GitHub release | |
uses: svenstaro/[email protected] | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
file: build/dist/* | |
tag: ${{ github.ref_name }} | |
overwrite: true | |
file_glob: true |