Skip to content

Commit

Permalink
release yaml github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ak1ra24 committed Jan 28, 2020
1 parent ada8d66 commit b2097cc
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: release
on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+"

jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.13
uses: actions/setup-go@v1
with:
go-version: 1.13
id: go

- name: Check out code into the Go module directory
uses: actions/checkout@master

- name: Build
env:
GO111MODULE: on
GOPATH: /home/runner/work/
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
go get -u github.com/x-motemen/gobump/cmd/gobump
go get -u github.com/tcnksm/ghr
go get -u github.com/Songmu/ghch/cmd/ghch
go get -u github.com/Songmu/goxz/cmd/goxz
export TAGNAME=$($GOPATH/bin/gobump show -r cmd/)
echo "DEBUG:" $TAGNAME
export CHANGELOG=$($GOPATH/bin/ghch -F markdown --latest)
$GOPATH/bin/goxz -pv ${TAGNAME} -os=linux -arch=amd64 -d ./dist/v${TAGNAME}
$GOPATH/bin/ghr -n ${TAGNAME} -b ${CHANGELOG} -draft ${TAGNAME} goxz/

0 comments on commit b2097cc

Please sign in to comment.