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 and release go-cli binaries for current and latest tags | |
on: | |
release: | |
types: | |
- published | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.18 | |
- name: Build go-cli binary releases | |
run: cd ./cli && ./buildreleases.sh | |
- name: Create release | |
uses: ncipollo/release-action@v1 | |
with: | |
allowUpdates: true | |
artifacts: ./cli/bin/instant-linux,./cli/bin/instant-macos,./cli/bin/instant-win.exe | |
tag: latest | |
commit: main | |
- name: Release binaries to referenced tag | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: | | |
./cli/bin/instant-linux | |
./cli/bin/instant-macos | |
./cli/bin/instant-win.exe |