From 0dda2dcb4c5599ad47d9f56eff28771620a00696 Mon Sep 17 00:00:00 2001 From: tidex <46107860+tidexe@users.noreply.github.com> Date: Sat, 15 Feb 2025 22:22:26 +0800 Subject: [PATCH] Create create-release.yml --- .github/workflows/create-release.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/create-release.yml diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml new file mode 100644 index 00000000..3c7813bb --- /dev/null +++ b/.github/workflows/create-release.yml @@ -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