Create create-release.yml
This commit is contained in:
parent
2daaf8d652
commit
0dda2dcb4c
|
|
@ -0,0 +1,24 @@
|
||||||
|
name: Create Release
|
||||||
|
on:
|
||||||
|
workflow_dispatch: # 手动发布
|
||||||
|
workflow_run: # 当 build 流程成功完成后自动触发
|
||||||
|
workflows: ["Build Artifacts"]
|
||||||
|
types: [completed]
|
||||||
|
jobs:
|
||||||
|
release:
|
||||||
|
if: ${{ github.event.workflow_run.conclusion == 'success' }}
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Download Artifact
|
||||||
|
uses: actions/download-artifact@v3
|
||||||
|
with:
|
||||||
|
name: binaries
|
||||||
|
|
||||||
|
- name: Create Release
|
||||||
|
uses: softprops/action-gh-release@v1
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.TOKEN }}
|
||||||
|
with:
|
||||||
|
tag_name: v$(date +%s)
|
||||||
|
files: |
|
||||||
|
*.tar.gz
|
||||||
Loading…
Reference in New Issue