Skip to content

Commit

Permalink
Merge pull request #9 from MengJiangProject/pull-request
Browse files Browse the repository at this point in the history
Add github actions to build binaries
  • Loading branch information
brancz committed Aug 4, 2021
2 parents 0998536 + d198b45 commit c6b07b0
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 2 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Go

on:
push:
tags:
- '*'

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.16
- name: GoReleaser Action
uses: goreleaser/goreleaser-action@v2.6.1
with:
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload assets
uses: actions/upload-artifact@v2
with:
name: gojsontoyaml
path: dist/*
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
module github.com/brancz/gojsontoyaml

go 1.12
go 1.16

require (
github.com/ghodss/yaml v1.0.0
gopkg.in/yaml.v2 v2.4.0 // indirect
gopkg.in/yaml.v2 v2.4.0
)
2 changes: 2 additions & 0 deletions vendor/modules.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# github.com/ghodss/yaml v1.0.0
## explicit
github.com/ghodss/yaml
# gopkg.in/yaml.v2 v2.4.0
## explicit
gopkg.in/yaml.v2

0 comments on commit c6b07b0

Please sign in to comment.