Skip to content

Commit 3587b1b

Browse files
committed
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/
1 parent 3b03a30 commit 3587b1b

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

.github/workflows/micropython.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -127,11 +127,6 @@ jobs:
127127

128128
- name: Upload .uf2
129129
if: github.event_name == 'release'
130-
uses: actions/upload-release-asset@v1
131-
env:
132-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
130+
uses: softprops/action-gh-release@v2
133131
with:
134-
asset_path: build-${{ matrix.name }}/firmware.uf2
135-
upload_url: ${{ github.event.release.upload_url }}
136-
asset_name: ${{ env.RELEASE_FILE }}.uf2
137-
asset_content_type: application/octet-stream
132+
files: build-${{ matrix.name }}/${{ env.RELEASE_FILE }}.uf2

0 commit comments

Comments
 (0)