From 63d4e6e1d2740398c8405b2af6f5ea6824290fe2 Mon Sep 17 00:00:00 2001 From: Emmm Monster <58943012+emmmx@users.noreply.github.com> Date: Fri, 12 Nov 2021 05:30:03 +0800 Subject: [PATCH] improve ci --- .github/workflows/release.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4a069d2..6bb88b2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -6,7 +6,7 @@ on: - "v*" jobs: - create-release: + create_release: runs-on: ubuntu-latest steps: - name: Get current time @@ -22,8 +22,11 @@ jobs: tag_name: ${{ github.ref }} release_name: "Build ${{ steps.date.outputs.date }}" draft: true - + outputs: + upload_url: "${{ steps.release.outputs.upload_url }}" build: + needs: + - create_release runs-on: ubuntu-latest strategy: matrix: @@ -74,6 +77,6 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - upload_url: ${{ jobs.create-release.steps.release.outputs.upload_url }} + upload_url: ${{ needs.create_release.outputs.upload_url }} asset_path: um asset_name: um-${{ matrix.GOOS }}-${{ matrix.GOARCH }}${{ matrix.BIN_SUFFIX }}