Skip to content

Release Notes - wsget v0.1.0 #9

Release Notes - wsget v0.1.0

Release Notes - wsget v0.1.0 #9

Workflow file for this run

name: WSGet Release
on:
release:
types:
- created
jobs:
build:
name: Generate builds
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v2
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: '1.21.x'
- name: Build Linux
run: GOOS=linux GOARCH=amd64 go build -buildmode=exe -o ./wsget ./cmd/wsget
- name: Compress Linux
run: tar -czvf ./wsget-$(git describe --tags --abbrev=0).linux-amd64.tar.gz ./wsget ./LICENSE ./README.md
- name: Build MacOS (Intel)
run: GOOS=darwin GOARCH=amd64 go build -buildmode=exe -o ./wsget ./cmd/wsget
- name: Compress MacOS (Intel)
run: tar -czvf ./wsget-$(git describe --tags --abbrev=0).darwin-amd64.tar.gz ./wsget ./LICENSE ./README.md
- name: Build MacOS (M)
run: GOOS=darwin GOARCH=arm64 go build -buildmode=exe -o ./wsget ./cmd/wsget
- name: Compress MacOS (M)
run: tar -czvf ./wsget-$(git describe --tags --abbrev=0).darwin-arm64.tar.gz ./wsget ./LICENSE ./README.md
- name: Copy build-artifacts
uses: skx/github-action-publish-binaries@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
args: "./*.tar.gz"