CI: Switch to action-gh-release.

Switch from the long deprecated upload-release-asset to action-gh-release
and attempt to replicate the same behaviour.

Avoids nodejs and set-output deprecation warnings:
- https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
- https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
pull/1018/head
Phil Howard 2024-10-25 11:24:36 +01:00
rodzic 3b03a30963
commit 3587b1be9f
1 zmienionych plików z 2 dodań i 7 usunięć

Wyświetl plik

@ -127,11 +127,6 @@ jobs:
- name: Upload .uf2
if: github.event_name == 'release'
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: softprops/action-gh-release@v2
with:
asset_path: build-${{ matrix.name }}/firmware.uf2
upload_url: ${{ github.event.release.upload_url }}
asset_name: ${{ env.RELEASE_FILE }}.uf2
asset_content_type: application/octet-stream
files: build-${{ matrix.name }}/${{ env.RELEASE_FILE }}.uf2