From 821a92dd45c72bb2892a1e9eced589704e4e9a74 Mon Sep 17 00:00:00 2001 From: "Slava (aider)" Date: Thu, 1 Aug 2024 14:35:17 +0200 Subject: [PATCH] Added upload artifact step in the build stage and ensured the artifact is uploaded into the releases folder in the release stage. --- .github/workflows/build-and-release.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-and-release.yml b/.github/workflows/build-and-release.yml index 31293e5..4a3f03c 100644 --- a/.github/workflows/build-and-release.yml +++ b/.github/workflows/build-and-release.yml @@ -49,6 +49,12 @@ jobs: mv await releases/await_${{ github.ref_name }}_linux_amd64 fi + - name: Upload Artifact + uses: actions/upload-artifact@v2 + with: + name: await-${{ matrix.os }} + path: releases/* + - name: Set dummy ACTIONS_RUNTIME_TOKEN and ACTIONS_RUNTIME_URL for act if: ${{ env.ACT }} run: | @@ -71,7 +77,13 @@ jobs: draft: false prerelease: false - - name: Upload Artifact + - name: Download Artifact + uses: actions/download-artifact@v2 + with: + name: await-${{ matrix.os }} + path: releases + + - name: Upload Release Artifact uses: softprops/action-gh-release@v1 with: files: releases/*