Skip to content

Commit

Permalink
ci: adds GitHub action to release based on tag.
Browse files Browse the repository at this point in the history
  • Loading branch information
atombender committed Aug 16, 2022
1 parent 1f7d167 commit 227d63c
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Release

on:
push:
tags:
- 'v*'

jobs:
test:
name: Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with: {go-version: '^1.18'}
- run: |
env GO111MODULE=off go get github.com/mitchellh/gox
- run: |
gox -osarch="darwin/amd64 darwin/arm64 linux/amd64 linux/arm windows/amd64" -output="groqfmt-{{.OS}}-{{.Arch}}"
- uses: marvinpinto/[email protected]
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
files: |
groqfmt-darwin-amd64
groqfmt-linux-amd64
groqfmt-linux-arm
groqfmt-windows-amd64.exe

0 comments on commit 227d63c

Please sign in to comment.