From e2539c6b14e7e9ba14e65ad0e7b1bb82ab47cbb0 Mon Sep 17 00:00:00 2001 From: Sergey Panteleev Date: Thu, 30 May 2024 12:38:36 +0300 Subject: [PATCH] ci: Update workflow --- .github/workflows/build.yml | 20 +++----------------- 1 file changed, 3 insertions(+), 17 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 329ed5c..2b9ddbf 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -192,14 +192,6 @@ jobs: permissions: contents: write steps: - - # Check out current repository - - name: Fetch Sources - uses: actions/checkout@v4 - with: - submodules: 'true' - token: ${{ secrets.FETCH_SUBMODULES_PAT }} - # Remove old release drafts by using the curl request for the available releases with draft flag - name: Remove Old Release Drafts env: @@ -214,18 +206,12 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | - gh release create "v${{ needs.build.outputs.version }}" \ + gh release create "${{ github.event.release.tag_name }}" \ --draft \ - --title "v${{ needs.build.outputs.version }}" - - - name: Download artifact - uses: actions/download-artifact@v3 - id: download - with: - name: ${{ steps.artifact.outputs.filename }} + --title "${{ github.event.release.tag_name }}" # Upload artifact as a release asset - name: Upload Release Asset env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: gh release upload "v${{ needs.build.outputs.version }}" ${{ steps.artifact.outputs.filename }} + run: gh release upload ${{ github.event.release.tag_name }} ./build/distributions/*