Create create-release.yml

This commit is contained in:
tidex 2025-02-15 22:22:26 +08:00 committed by GitHub
parent 2daaf8d652
commit 0dda2dcb4c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 24 additions and 0 deletions

24
.github/workflows/create-release.yml vendored Normal file
View File

@ -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