From 3627a98f9538eb7d69877a31550e052ddffd24f5 Mon Sep 17 00:00:00 2001 From: Ken Hibino Date: Sun, 31 Jan 2021 11:36:12 -0800 Subject: [PATCH] Allow manual release workflow dispatch --- .github/workflows/release.yml | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9b95dd2..5473883 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,6 +1,8 @@ on: + workflow_dispatch: release: - types: [published, created, edited] + types: + - created jobs: release: @@ -27,26 +29,28 @@ jobs: with: node-version: "12" - - name: Install NPM packages - run: cd ui && rm yarn.lock && yarn install - - - id: release + - name: Get release + id: release uses: bruceadams/get-release@v1.2.2 env: GITHUB_TOKEN: ${{ github.token }} + - name: Install NPM packages + run: cd ui && rm yarn.lock && yarn install + - name: Build release binary run: | GOOS=${{ matrix.goos }} GOARCH=amd64 make build tar -czvf asynqmon_${{ steps.release.outputs.tag_name }}_${{ matrix.goos }}_amd64.tar.gz asynqmon ls - - name: Upload release binary - uses: actions/upload-release-asset@v1.0.2 + - name: Upload Release Asset + id: upload-release-asset + uses: actions/upload-release-asset@v1 env: GITHUB_TOKEN: ${{ github.token }} with: upload_url: ${{ steps.release.outputs.upload_url }} - asset_path: ./asynqmon_${{ steps.release.outputs.tag_name }}_${{ matrix.goos }}-amd64.tar.gz - asset_name: asynqmon_${{ steps.release.outputs.tag_name }}_${{ matrix.goos }}-amd64.tar.gz - asset_content_type: application/gzip + asset_path: ./asynqmon_${{ steps.release.outputs.tag_name }}_${{ matrix.goos }}_amd64.tar.gz + asset_name: asynqmon_${{ steps.release.outputs.tag_name }}_${{ matrix.goos }}_amd64.tar.gz + asset_content_type: application/zip