Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Commit

Permalink
feat: support release trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
yin1999 committed Nov 14, 2021
1 parent 74dc3e5 commit 772e095
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/Release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@ on:
description: >
Go version(X.Y.Z) for build
default: latest go version
push:
tags:
- '*'
release:
types: [published]

env:
MESSAGE: ${{ github.event.inputs.MESSAGE }}
Expand Down Expand Up @@ -52,10 +51,18 @@ jobs:
make all
- name: Create Release
if: github.event_name != 'release'
run: |
gh release create ${{ env.VERSION }} -n "${{ env.MESSAGE }}" -t "${{ env.name }}" ${{ env.files }}
gh release create ${{ env.VERSION }} -n "${{ env.MESSAGE }}" -t "${{ env.name }}"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# attribute
name: 健康打卡_函数计算版${{ env.VERSION }}

- name: Upload Assets
run: |
gh release upload ${{ env.VERSION }} ${{ env.files }} --clobber
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# attribute
files: bootstrap.zip

0 comments on commit 772e095

Please sign in to comment.