Skip to content

Commit

Permalink
update the release action as per newest Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
josuah committed Jan 31, 2023
1 parent 64d7bce commit 79e6901
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ jobs:
run: |
sudo apt install gcc-arm-none-eabi libnewlib-arm-none-eabi
pip install --user nrfutil intelhex
curl -o nrf-command-line-tools.deb https://nsscprodmedia.blob.core.windows.net/prod/software-and-other-downloads/desktop-software/nrf-command-line-tools/sw/versions-10-x-x/10-19-0/nrf-command-line-tools_10.19.0_amd64.deb
sudo dpkg -i nrf-command-line-tools.deb
- name: Bootstrap the dependencies
run: |
Expand All @@ -28,7 +30,7 @@ jobs:
- name: Build the firmware
run: |
make
make release
- name: Upload release.hex
uses: actions/upload-artifact@v3
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ jobs:
run: |
sudo apt install gcc-arm-none-eabi libnewlib-arm-none-eabi
pip install --user nrfutil intelhex
curl -o nrf-command-line-tools.deb https://nsscprodmedia.blob.core.windows.net/prod/software-and-other-downloads/desktop-software/nrf-command-line-tools/sw/versions-10-x-x/10-19-0/nrf-command-line-tools_10.19.0_amd64.deb
sudo dpkg -i nrf-command-line-tools.deb
- name: Bootstrap the dependencies
run: |
Expand All @@ -26,9 +28,9 @@ jobs:
- name: Build the firmware and issue a release
run: |
make
make release
- name: Create a release
- name: Create a release on Github
id: create_release
uses: actions/create-release@latest
env:
Expand Down Expand Up @@ -58,7 +60,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: build/firmware.hex
asset_path: build/release-${{ github.ref_name }}.hex
asset_name: brilliant-monocle-${{ github.ref_name }}.hex
asset_content_type: text/plain

Expand All @@ -68,7 +70,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: build/firmware.zip
asset_path: build/release-${{ github.ref_name }}.zip
asset_name: brilliant-monocle-${{ github.ref_name }}.zip
asset_content_type: application/zip

Expand Down

0 comments on commit 79e6901

Please sign in to comment.