Fix release.yml

This commit is contained in:
Ken Hibino 2021-01-31 06:26:35 -08:00
parent c4ec705a4e
commit 1bcc9663a2
2 changed files with 23 additions and 10 deletions

View File

@ -1,25 +1,34 @@
name: goreleaser
on: on:
pull_request: pull_request:
push: push:
jobs: jobs:
goreleaser: release:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v2
with: with:
fetch-depth: 0 fetch-depth: 0
- name: Set up Go - name: Set up Go
uses: actions/setup-go@v2 uses: actions/setup-go@v2
with: with:
go-version: 1.16rc1 go-version: 1.15
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2 - name: Install Go1.16
run: go get golang.org/dl/go1.16rc1 && go1.16rc1 download
- name: Set up Node
uses: actions/setup-node@v2
with: with:
version: latest node-version: "12"
args: release --rm-dist
env: - name: Install NPM packages
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: cd ui && rm yarn.lock && yarn install
- name: Build Binary
run: |
make build
tar -czvf asynqmon-linux-amd64.tar.gz asynqmon
ls

4
.gitignore vendored
View File

@ -8,8 +8,12 @@
# Test binary, built with `go test -c` # Test binary, built with `go test -c`
*.test *.test
# tar file.
*.tar.gz
# Output of the go coverage tool, specifically when used with LiteIDE # Output of the go coverage tool, specifically when used with LiteIDE
*.out *.out
# main binary # main binary
asynqmon asynqmon
dist/