From 87f95c82700b2733b6c10c03572238a4feee7122 Mon Sep 17 00:00:00 2001 From: EnixCoda Date: Sun, 17 Jul 2022 23:12:58 +0800 Subject: [PATCH] build: fix release assets action --- .github/workflows/release-assets.yml | 15 +++++++++------ .github/workflows/version.yml | 4 ++-- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release-assets.yml b/.github/workflows/release-assets.yml index c0fe524..7852bd1 100644 --- a/.github/workflows/release-assets.yml +++ b/.github/workflows/release-assets.yml @@ -10,8 +10,14 @@ jobs: build: uses: ./.github/workflows/build.yml + version: + uses: ./.github/workflows/version.yml + release: - needs: build + needs: + - build + - version + runs-on: ubuntu-latest steps: @@ -22,17 +28,14 @@ jobs: with: name: dist - - uses: ./.github/workflows/version.yml - id: version - - name: Create Release id: create_release uses: actions/create-release@latest env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - tag_name: ${{ steps.version.outputs.VERSION }} - release_name: ${{ steps.version.outputs.VERSION }} + tag_name: ${{ needs.version.outputs.VERSION }} + release_name: ${{ needs.version.outputs.VERSION }} draft: false prerelease: false diff --git a/.github/workflows/version.yml b/.github/workflows/version.yml index 793a37a..faf008f 100644 --- a/.github/workflows/version.yml +++ b/.github/workflows/version.yml @@ -4,10 +4,10 @@ on: outputs: VERSION: description: "The VERSION string" - value: ${{ jobs.build.outputs.VERSION }} + value: ${{ jobs.version.outputs.VERSION }} jobs: - get-version: + version: runs-on: ubuntu-latest outputs: