generate binaries for multiple platforms #4
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: Release | |
on: | |
push: | |
tags: | |
- 'v*' | |
permissions: | |
contents: write # Grants write access to repository contents, including releases and assets | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out the repository | |
uses: actions/checkout@v2 | |
- name: Set up Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: '1.22' | |
- name: Get version from tag | |
run: echo "version=${GITHUB_REF##*/}" >> $GITHUB_ENV | |
- name: Build binaries | |
run: make release VERSION=${{ env.version }} | |
- name: Create GitHub Release | |
uses: softprops/action-gh-release@v1 | |
with: | |
tag_name: ${{ env.version }} | |
name: ${{ env.version }} | |
files: ./notify_incident_io-* | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |