Skip to content

Commit

Permalink
Added upload artifact step in the build stage and ensured the artifac…
Browse files Browse the repository at this point in the history
…t is uploaded into the releases folder in the release stage.
  • Loading branch information
slavaGanzin committed Aug 1, 2024
1 parent 4501e4b commit 821a92d
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/build-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -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/*
Expand Down

0 comments on commit 821a92d

Please sign in to comment.