Skip to content

chore: prepare the first release #2

chore: prepare the first release

chore: prepare the first release #2

Workflow file for this run

name: Release
on:
push:
tags:
- v*
jobs:
build-firmware:
uses: ./.github/workflows/firmware.yml
build-pcb:
uses: ./.github/workflows/kicad.yml
build-native:
uses: ./.github/workflows/native.yml
deploy-web:
uses: ./.github/workflows/web.yml
release:
name: release
runs-on: ubuntu-latest
needs: [build-firmware, build-native, build-pcb]
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
- run: |
zip -r fsk-energymeter-firmware-${{ github.ref_name }}.zip firmware
(cd build.fsk-energymeter-macos-arm64 && zip -r ../fsk-energymeter-macos-arm64-${{ github.ref_name }}.app.zip .)
mv build.fsk-energymeter-windows-x64/fsk-energymeter.exe fsk-energymeter-windows-x64-${{ github.ref_name }}.exe
mv build.fsk-energymeter-linux-x64/fsk-energymeter*.AppImage fsk-energymeter-linux-x64-${{ github.ref_name }}.AppImage
zip -r fsk-energymeter-pcb-${{ github.ref_name }}.zip kicad
- uses: ncipollo/release-action@v1
with:
allowUpdates: true
artifacts: |
fsk-energymeter-firmware-*.zip
fsk-energymeter-windows-x64-*
fsk-energymeter-macos-arm64-*
fsk-energymeter-linux-x64-*
fsk-energymeter-pcb-*.zip
commit: ${{ github.sha }}
tag: ${{ github.ref_name }}
body: |
## Note
### Firmwares
Use [STM32CubeProgrammer](https://www.st.com/en/development-tools/stm32cubeprog.html) to upload the firmware to the device.
### FSK-EEM Viewer
In MacOS, run the following command before open the installed `fsk-energymeter` for the first time.\
Unless, it will say `"fsk-energymeter" is damaged and can’t be opened.` because the packages are not signed.
```sh
cd /path/to/fsk-energymeter
xattr -c fsk-energymeter.app
chmod +x fsk-energymeter.app/Contents/MacOS/fsk-energymeter
```
Currently, the Device Configuration tab of the FSK-EEM Viewer is not supported in the MacOS due to a lack of WebSerial API.