Compile on Release #23
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: Compile on Release | |
on: | |
release: | |
types: [ published ] | |
env: | |
BUILD_NUMBER: ${{ github.run_number }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
RELEASE_TAG: ${{ github.event.release.tag_name }} | |
permissions: | |
contents: write | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: "1.20" | |
- name: Setup Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: '3.2' | |
- name: Setup FPM | |
run: gem install fpm && fpm --version | |
- name: Build executables | |
run: ./compile.sh | |
- name: Build Debian Packages | |
run: ./fpm.sh | |
- name: Publish executables to GitHub Release | |
uses: softprops/action-gh-release@v1 | |
if: startswith(github.ref, 'refs/tags/') | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
files: bin/* |