From 16f6e73aaf53e590b61f85675f42876ab5f48827 Mon Sep 17 00:00:00 2001 From: qydysky Date: Sun, 4 Oct 2020 22:06:53 +0800 Subject: [PATCH] =?utf8?q?=E4=BF=AE=E6=AD=A3action?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .github/workflows/go.yml | 35 +++++++++++++++++------------------ VERSION | 2 +- 2 files changed, 18 insertions(+), 19 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index add47c4..0636988 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -7,8 +7,22 @@ on: jobs: + Release_Drafter: + name: Release_Drafter + runs-on: ubuntu-latest + steps: + + - name: Release Drafter + # You may pin to the exact commit or the version. + # uses: release-drafter/release-drafter@06d4616a80cd7c09ea3cf12214165ad6c1859e67 + id: create_release + uses: release-drafter/release-drafter@v5.11.0 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + ubuntu_build: name: ubuntu_build + needs: Release_Drafter runs-on: ubuntu-latest steps: @@ -27,21 +41,13 @@ jobs: - name: zip run: zip -q -r release_ubuntu.zip * - - name: Release Drafter - # You may pin to the exact commit or the version. - # uses: release-drafter/release-drafter@06d4616a80cd7c09ea3cf12214165ad6c1859e67 - id: create_release - uses: release-drafter/release-drafter@v5.11.0 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: Upload a Release Asset uses: actions/upload-release-asset@v1.0.2 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: # The URL for uploading assets to the release - upload_url: ${{ steps.create_release.outputs.upload_url }} + upload_url: ${{ jobs.Release_Drafter.steps.create_release.outputs.upload_url }} # The path to the asset you want to upload asset_path: ./release_ubuntu.zip # The name of the asset you want to upload @@ -51,6 +57,7 @@ jobs: windows_build: name: windows_build + needs: Release_Drafter runs-on: windows-latest steps: @@ -68,14 +75,6 @@ jobs: - name: zip run: .\7za.exe a -r .\release_windows.zip ./ - - - name: Release Drafter - # You may pin to the exact commit or the version. - # uses: release-drafter/release-drafter@06d4616a80cd7c09ea3cf12214165ad6c1859e67 - id: create_release - uses: release-drafter/release-drafter@v5.11.0 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Upload a Release Asset uses: actions/upload-release-asset@v1.0.2 @@ -83,7 +82,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: # The URL for uploading assets to the release - upload_url: ${{ steps.create_release.outputs.upload_url }} + upload_url: ${{ jobs.Release_Drafter.steps.create_release.outputs.upload_url }} # The path to the asset you want to upload asset_path: ./release_windows.zip # The name of the asset you want to upload diff --git a/VERSION b/VERSION index 6a5c1c4..6c721d4 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -202010042131 \ No newline at end of file +202010042206 \ No newline at end of file -- 2.39.2