From 1bcc9663a201d37d39194121be6f3734f4183502 Mon Sep 17 00:00:00 2001 From: Ken Hibino Date: Sun, 31 Jan 2021 06:26:35 -0800 Subject: [PATCH] Fix release.yml --- .github/workflows/release.yml | 29 +++++++++++++++++++---------- .gitignore | 4 ++++ 2 files changed, 23 insertions(+), 10 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index dca890f..6f7575c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,25 +1,34 @@ -name: goreleaser - on: pull_request: push: jobs: - goreleaser: + release: runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v2 with: fetch-depth: 0 + - name: Set up Go uses: actions/setup-go@v2 with: - go-version: 1.16rc1 - - name: Run GoReleaser - uses: goreleaser/goreleaser-action@v2 + go-version: 1.15 + + - 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: - version: latest - args: release --rm-dist - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + node-version: "12" + + - name: Install NPM packages + run: cd ui && rm yarn.lock && yarn install + + - name: Build Binary + run: | + make build + tar -czvf asynqmon-linux-amd64.tar.gz asynqmon + ls diff --git a/.gitignore b/.gitignore index 7ba5339..09505ae 100644 --- a/.gitignore +++ b/.gitignore @@ -8,8 +8,12 @@ # Test binary, built with `go test -c` *.test +# tar file. +*.tar.gz + # Output of the go coverage tool, specifically when used with LiteIDE *.out # main binary asynqmon +dist/ \ No newline at end of file