Fixed BUG: Any button that pops up will cause all buttons to pop up #14
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: Tagged Release Flow | |
on: | |
push: | |
tags: | |
- "v*" | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- name: Setup Python | |
uses: actions/[email protected] | |
- uses: actions/checkout@v3 | |
- name: Setup riscv gnu/gcc toolchain | |
uses: ChnMasterOG/[email protected] | |
- run: riscv-none-elf-gcc --version | |
- name: Build and Packaging | |
run: | | |
cd ./mounriver_project | |
python replace_path.py | |
echo "build KEYBOARD_CH582M..." | |
cd ./KEYBOARD_CH582M/obj | |
make | |
echo "build RF_CH582M..." | |
cd ../../ | |
cd ./RF_CH582M/obj | |
make | |
cd ../../../ | |
mkdir TP78_v2_release | |
cp ./mounriver_project/KEYBOARD_CH582M/obj/*.hex TP78_v2_release | |
cp ./mounriver_project/KEYBOARD_CH582M/obj/*.bin TP78_v2_release | |
cp ./mounriver_project/KEYBOARD_CH582M/obj/*.elf TP78_v2_release | |
cp ./mounriver_project/RF_CH582M/obj/*.hex TP78_v2_release | |
cp ./mounriver_project/RF_CH582M/obj/*.bin TP78_v2_release | |
cp ./mounriver_project/RF_CH582M/obj/*.elf TP78_v2_release | |
cd ./mounriver_project | |
python replace_ld.py | |
echo "build KEYBOARD_CH582M(No Kboot)..." | |
cd ./KEYBOARD_CH582M/obj | |
make | |
cd ../../../ | |
mkdir TP78_v2_release/No_Kboot_firmware | |
cp ./mounriver_project/KEYBOARD_CH582M/obj/*.hex TP78_v2_release/No_Kboot_firmware | |
cp ./mounriver_project/KEYBOARD_CH582M/obj/*.bin TP78_v2_release/No_Kboot_firmware | |
cp ./mounriver_project/KEYBOARD_CH582M/obj/*.elf TP78_v2_release/No_Kboot_firmware | |
Compress-Archive -Path TP78_v2_release TP78_v2_release.zip | |
- name: Create Release | |
id: create_release | |
uses: actions/create-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: ${{ github.ref }} | |
release_name: Release ${{ github.ref }} | |
draft: false | |
prerelease: false | |
- name: Upload Release Asset | |
id: upload-release-asset | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps | |
asset_path: ./TP78_v2_release.zip | |
asset_name: TP78_v2_release.zip | |
asset_content_type: application/zip |