Skip to content

Increment version

Increment version #3

Workflow file for this run

name: Release
on:
push:
paths:
- .version
jobs:
release:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version: "1.21.4"
- name: Run tests
run: go test -v ./...
- name: Build
run: |
GOOS=darwin GOARCH=amd64 go build -v -o macos
GOOS=linux GOARCH=amd64 go build -v -o linux
GOOS=windows GOARCH=amd64 go build -v -o windows
- name: Create release
run: |
TAG=$(cat .version)
gh release create $TAG -t $TAG
gh release upload $TAG ./macos ./linux ./windows
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}