mirror of
https://github.com/hibiken/asynqmon.git
synced 2025-01-19 03:05:53 +08:00
Allow manual release workflow dispatch
This commit is contained in:
parent
6025d1155d
commit
3627a98f95
24
.github/workflows/release.yml
vendored
24
.github/workflows/release.yml
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user