Fix artifact uploads for canary builds

This commit is contained in:
Ashcon Partovi
2024-04-17 10:04:57 -07:00
parent 51bb5f3a04
commit d5e6ff4c97
2 changed files with 13 additions and 6 deletions

View File

@@ -190,7 +190,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Cleanup Artifacts
uses: geekyeggo/delete-artifact@v2
uses: geekyeggo/delete-artifact@v5
with:
name: |
bun-*-cpp

View File

@@ -12,6 +12,7 @@ on:
jobs:
upload:
if: ${{ github.repository_owner == 'oven-sh' }}
name: Upload Artifacts
runs-on: ubuntu-latest
steps:
- name: Download Artifacts
@@ -23,12 +24,18 @@ jobs:
github-token: ${{ github.token }}
run-id: ${{ github.event.workflow_run.id }}
- name: Upload to GitHub Releases
uses: softprops/action-gh-release@v2
uses: ncipollo/release-action@v1
with:
tag_name: canary
make_latest: false
generate_release_notes: false
files: bun/*
tag: canary
name: Canary (${{ github.sha }})
prerelease: true
body: This canary release of Bun corresponds to the commit [${{ github.sha }}]
allowUpdates: true
replacesArtifacts: true
generateReleaseNotes: true
artifactErrorsFailBuild: true
artifacts: bun/**/bun-*.zip
token: ${{ github.token }}
- name: Upload to S3 (using SHA)
uses: shallwefootball/s3-upload-action@4350529f410221787ccf424e50133cbc1b52704e
with: