Skip to content

Commit

Permalink
Create go.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
newpanjing authored Apr 19, 2022
1 parent 64bd7b4 commit 10a174c
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Go

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.18

- name: Build-Macos
run: GOOS=darwin GOARCH=amd64 go build -o ./dist/macos_amd64

- name: Create GitHub release
uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: ${{ env.ReleaseVersion }}
title: ${{ env.ReleaseVersion }}
prerelease: false
files: |
artifacts/packages/*

0 comments on commit 10a174c

Please sign in to comment.