Skip to content

πŸš€ test workflow #4

πŸš€ test workflow

πŸš€ test workflow #4

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