From b4aa105b39a878a43569dc140315e94610be966a Mon Sep 17 00:00:00 2001 From: Charlie Birks Date: Fri, 8 Nov 2024 23:31:18 +0000 Subject: [PATCH] Update actions --- .github/workflows/build.yml | 22 ++++++---------------- 1 file changed, 6 insertions(+), 16 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8351bf8..063b0f0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -64,13 +64,13 @@ jobs: steps: # Check out the main repo - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: path: main # Check out the 32Blit API we build against - name: Checkout 32Blit API - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: 32blit/32blit-sdk path: 32blit-sdk @@ -144,23 +144,13 @@ jobs: # Push the tar file to the release - name: Upload tar if: github.event_name == 'release' && matrix.release-suffix != '' - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} + uses: softprops/action-gh-release@v1 with: - asset_path: ${{runner.workspace}}/main/build/${{env.RELEASE_FILE}}.tar.gz - upload_url: ${{github.event.release.upload_url}} - asset_name: ${{env.RELEASE_FILE}}.tar.gz - asset_content_type: application/octet-stream + files: ${{runner.workspace}}/main/build/${{env.RELEASE_FILE}}.tar.gz # Push the zip file to the release - name: Upload zip if: github.event_name == 'release' && matrix.release-suffix != '' - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} + uses: softprops/action-gh-release@v1 with: - asset_path: ${{runner.workspace}}/main/build/${{env.RELEASE_FILE}}.zip - upload_url: ${{github.event.release.upload_url}} - asset_name: ${{env.RELEASE_FILE}}.zip - asset_content_type: application/zip + files: ${{runner.workspace}}/main/build/${{env.RELEASE_FILE}}.zip