From 8e5155a1eb941f148b2cb92526bb37ff7b37846e Mon Sep 17 00:00:00 2001 From: mujio Date: Sun, 17 Dec 2023 11:00:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95github=E6=89=93=E5=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/manual.yml | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/.github/workflows/manual.yml b/.github/workflows/manual.yml index 974d598..dbfd36c 100644 --- a/.github/workflows/manual.yml +++ b/.github/workflows/manual.yml @@ -1,37 +1,32 @@ -# 可选,将显示在 GitHub 存储库的“操作”选项卡中的工作流名称 name: Release CI -# 指定此工作流的触发器 on: workflow_dispatch: -# 需要运行的作业组合 jobs: - # 任务:创建 release 版本 create-release: runs-on: ubuntu-latest outputs: - RELEASE_UPLOAD_ID: ${{ steps.create_release.outputs.id }} + RELEASE_UPLOAD_ID: ${{ steps.create-release.outputs.id }} steps: - - uses: actions/checkout@v2 - # 查询版本号(tag) + - name: Checkout code + uses: actions/checkout@v2 + - name: Query version number id: get_version - shell: bash run: | echo "using version tag ${GITHUB_REF:10}" - echo ::set-output name=version::"${GITHUB_REF:10}" + echo ::set-output name=Version::"${GITHUB_REF:10}" - # 根据查询到的版本号创建 release - name: Create Release - id: create_release + id: create-release uses: actions/create-release@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - tag_name: '${{ steps.get_version.outputs.VERSION }}' - release_name: 'app ${{ steps.get_version.outputs.VERSION }}' + tag_name: '${{ steps.get_version.outputs.Version }}' + release_name: 'app ${{ steps.get_version.outputs.Version }}' body: 'See the assets to download this version and install.' # 编译 Tauri