Skip to content

Commit 724069c

Browse files
ci: Replace deprecated actions/upload-release-asset.
Replaced with a fork of svenstaro/upload-release-action.
1 parent 9240f83 commit 724069c

File tree

1 file changed

+10
-30
lines changed

1 file changed

+10
-30
lines changed

.github/workflows/build.yml

Lines changed: 10 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -59,47 +59,27 @@ jobs:
5959
uses: actions/download-artifact@v4
6060
id: download-hex-files
6161
- name: Upload Radio Bridge hex file to GH Release
62-
uses: actions/upload-release-asset@v1
63-
env:
64-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
62+
uses: microbit-foundation/[email protected]
6563
with:
66-
upload_url: ${{github.event.release.upload_url}}
67-
asset_path: ${{steps.download-hex-files.outputs.download-path}}/radio-bridge/radio-bridge.hex
64+
file: ${{steps.download-hex-files.outputs.download-path}}/radio-bridge/radio-bridge.hex
6865
asset_name: radio-bridge-${{ env.TAG }}.hex
69-
asset_content_type: text/plain
7066
- name: Upload Radio Bridge Dev hex file to GH Release
71-
uses: actions/upload-release-asset@v1
72-
env:
73-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
67+
uses: microbit-foundation/[email protected]
7468
with:
75-
upload_url: ${{github.event.release.upload_url}}
76-
asset_path: ${{steps.download-hex-files.outputs.download-path}}/radio-bridge-dev/radio-bridge-dev.hex
69+
file: ${{steps.download-hex-files.outputs.download-path}}/radio-bridge-dev/radio-bridge-dev.hex
7770
asset_name: radio-bridge-${{ env.TAG }}-dev.hex
78-
asset_content_type: text/plain
7971
- name: Upload Radio Remote hex file to GH Release
80-
uses: actions/upload-release-asset@v1
81-
env:
82-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
72+
uses: microbit-foundation/[email protected]
8373
with:
84-
upload_url: ${{github.event.release.upload_url}}
85-
asset_path: ${{steps.download-hex-files.outputs.download-path}}/radio-remote/radio-remote.hex
74+
file: ${{steps.download-hex-files.outputs.download-path}}/radio-remote/radio-remote.hex
8675
asset_name: radio-remote-${{ env.TAG }}.hex
87-
asset_content_type: text/plain
8876
- name: Upload Radio Remote Dev hex file to GH Release
89-
uses: actions/upload-release-asset@v1
90-
env:
91-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
77+
uses: microbit-foundation/[email protected]
9278
with:
93-
upload_url: ${{github.event.release.upload_url}}
94-
asset_path: ${{steps.download-hex-files.outputs.download-path}}/radio-remote-dev/radio-remote-dev.hex
79+
file: ${{steps.download-hex-files.outputs.download-path}}/radio-remote-dev/radio-remote-dev.hex
9580
asset_name: radio-remote-${{ env.TAG }}-dev.hex
96-
asset_content_type: text/plain
9781
- name: Upload Local Sensors hex file to GH Release
98-
uses: actions/upload-release-asset@v1
99-
env:
100-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
82+
uses: microbit-foundation/[email protected]
10183
with:
102-
upload_url: ${{github.event.release.upload_url}}
103-
asset_path: ${{steps.download-hex-files.outputs.download-path}}/local-sensors/local-sensors.hex
84+
file: ${{steps.download-hex-files.outputs.download-path}}/local-sensors/local-sensors.hex
10485
asset_name: local-sensors-${{ env.TAG }}.hex
105-
asset_content_type: text/plain

0 commit comments

Comments
 (0)