Skip to content

Commit

Permalink
chore: swap deprecated actions/upload-release-assets to softprops/act…
Browse files Browse the repository at this point in the history
…ion-gh-release
  • Loading branch information
alfiedotwtf committed Nov 14, 2024
1 parent 0f9e8d3 commit bc73c1e
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 32 deletions.
11 changes: 3 additions & 8 deletions .github/workflows/nightly-forc-explorer-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ on:
workflow_dispatch:
workflow_call:
inputs:
upload_url:
required: true
type: string
date:
required: true
type: string
Expand Down Expand Up @@ -143,11 +140,9 @@ jobs:
tar -czvf $ZIP_FILE_NAME "$ARTIFACT"
- name: Upload release archive
uses: actions/upload-release-asset@v1
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ inputs.upload_url }}
asset_path: ./${{ env.ZIP_FILE_NAME }}
asset_name: ${{ env.ZIP_FILE_NAME }}
asset_content_type: application/gzip
files:
${{ env.ZIP_FILE_NAME }}
11 changes: 3 additions & 8 deletions .github/workflows/nightly-forc-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ on:
workflow_dispatch:
workflow_call:
inputs:
upload_url:
required: true
type: string
date:
required: true
type: string
Expand Down Expand Up @@ -134,11 +131,9 @@ jobs:
tar -czvf $ZIP_FILE_NAME ./forc-binaries
- name: Archive forc binaries
uses: actions/upload-release-asset@v1
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ inputs.upload_url }}
asset_path: ./${{ env.ZIP_FILE_NAME }}
asset_name: ${{ env.ZIP_FILE_NAME }}
asset_content_type: application/gzip
files:
${{ env.ZIP_FILE_NAME }}
11 changes: 3 additions & 8 deletions .github/workflows/nightly-forc-wallet-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ on:
workflow_dispatch:
workflow_call:
inputs:
upload_url:
required: true
type: string
date:
required: true
type: string
Expand Down Expand Up @@ -142,11 +139,9 @@ jobs:
tar -czvf $ZIP_FILE_NAME "$ARTIFACT"
- name: Upload release archive
uses: actions/upload-release-asset@v1
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ inputs.upload_url }}
asset_path: ./${{ env.ZIP_FILE_NAME }}
asset_name: ${{ env.ZIP_FILE_NAME }}
asset_content_type: application/gzip
files:
${{ env.ZIP_FILE_NAME }}
11 changes: 3 additions & 8 deletions .github/workflows/nightly-fuel-core-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ on:
workflow_dispatch:
workflow_call:
inputs:
upload_url:
required: true
type: string
date:
required: true
type: string
Expand Down Expand Up @@ -169,11 +166,9 @@ jobs:
tar -czvf "$ZIP_FILE_NAME" "$ARTIFACT"
- name: Upload Binary Artifact
uses: actions/upload-release-asset@v1
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ inputs.upload_url }}
asset_path: ./${{ env.ZIP_FILE_NAME }}
asset_name: ${{ env.ZIP_FILE_NAME }}
asset_content_type: application/gzip
files:
${{ env.ZIP_FILE_NAME }}

0 comments on commit bc73c1e

Please sign in to comment.