v1.3.0 #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: | |
release: | |
types: [ published ] | |
jobs: | |
release_amd64: | |
name: 'Build AMD64 release binary' | |
runs-on: 'ubuntu-latest' | |
env: | |
CGO_ENABLED: 0 | |
GOOS: 'linux' | |
GO111MODULE: 'on' | |
steps: | |
- name: 'Set up Go 1.21' | |
env: | |
RUNNER_TEMP: '/tmp' | |
uses: 'actions/setup-go@v3' | |
with: | |
go-version: '^1.21' | |
id: 'go' | |
- name: 'Check out code' | |
uses: 'actions/checkout@v3' | |
- name: 'Build binary' | |
run: | | |
go build -o rssirc-amd64 ./cmd/rssirc/main.go | |
chmod +x rssirc* | |
- name: 'Attach binary to release' | |
uses: 'skx/github-action-publish-binaries@master' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
args: 'rssirc-amd64' |