Skip to content

Commit

Permalink
[CI] Bump upload-release-assets v2 -> v3, upload to tag on manual run.
Browse files Browse the repository at this point in the history
The upload action only "knows" where to upload the release assets
on a "release" trigger.  Set explicitly so this works when manually
invoked on a tag.
  • Loading branch information
dtzSiFive committed Jan 4, 2024
1 parent aca17d3 commit cc8c555
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/unifiedBuildTestAndInstall.yml
Original file line number Diff line number Diff line change
Expand Up @@ -271,9 +271,10 @@ jobs:
retention-days: 7

- name: Upload Binaries (Tag)
uses: AButler/upload-release-assets@v2.0
uses: AButler/upload-release-assets@v3.0
if: inputs.install && github.ref_type == 'tag'
with:
# The * will grab the .sha256 as well
files: ${{ steps.name_archive.outputs.name }}*
repo-token: ${{ secrets.GITHUB_TOKEN }}
release-id: ${{ github.ref_name }} # Upload to release tag when manually run.
3 changes: 2 additions & 1 deletion .github/workflows/uploadReleaseArtifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,12 @@ jobs:
shasum -a 256 circt-full-sources.tar.gz | cut -d ' ' -f1 > circt-full-sources.tar.gz.sha256
- name: Upload Source Archive
uses: AButler/upload-release-assets@v2.0
uses: AButler/upload-release-assets@v3.0
with:
# The * will grab the .sha256 as well
files: circt-full-sources.tar.gz*
repo-token: ${{ secrets.GITHUB_TOKEN }}
release-id: ${{ github.ref_name }} # Upload to release tag when manually run.

# This job sets up the build matrix.
choose-matrix:
Expand Down

0 comments on commit cc8c555

Please sign in to comment.