2.5.3 #24
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Upload release artifacts | |
on: | |
release: | |
types: [published] | |
jobs: | |
upload: | |
runs-on: ubuntu-latest | |
container: | |
image: ghcr.io/tinygo-org/tinygo:0.35.0 | |
options: --user root | |
steps: | |
- name: Prepare | |
run: | | |
apt-get update | |
apt-get install -y make | |
- name: Work around CVE-2022-24765 | |
# We're not on a multi-user machine, so this is safe. | |
run: git config --global --add safe.directory "$GITHUB_WORKSPACE" | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Dependencies | |
run: | | |
go mod tidy | |
- name: Build XIAO BLE Sense binary | |
run: make TARGET=xiao-ble build | |
- name: Build Nano 33 BLE binary | |
run: make TARGET=nano-33-ble-s140v6-uf2 build | |
- name: Upload XIAO BLE Sense binaries to release | |
uses: svenstaro/upload-release-action@v2 | |
with: | |
tag: ${{ github.ref }} | |
file: ./build/ht_xiao-ble_*.uf2 | |
file_glob: true | |
asset_name: "ht_xiao-ble_$tag.uf2" | |
repo_token: ${{ github.token }} | |
- name: Upload Nano 33 BLE binaries to release | |
uses: svenstaro/upload-release-action@v2 | |
with: | |
tag: ${{ github.ref }} | |
file: ./build/ht_nano-33-ble_*.uf2 | |
file_glob: true | |
asset_name: "ht_nano-33-ble_$tag.uf2" | |
repo_token: ${{ github.token }} |