Skip to content

Commit

Permalink
add ci
Browse files Browse the repository at this point in the history
  • Loading branch information
74th committed Feb 12, 2024
1 parent 2f085f2 commit 1af9e53
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: build
on:
push:
workflow_dispatch:
on: push

jobs:
build-m5dial-simple-pointer:
runs-on: ubuntu-latest
Expand All @@ -22,5 +21,17 @@ jobs:
- name: Build
run:
cd m5dial-simple-pointer;
cp ssid.h.template ssid.h;
cp src/ssid.h.template src/ssid.h;
pio run

- name: rename
run:
cp m5dial-simple-pointer/.pio/build/m5dial/firmware.elf ./m5dial-simple-pointer.elf
cp m5dial-simple-pointer/.pio/build/m5dial/firmware.bin ./m5dial-simple-pointer.bin
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/m5dial-simple-pointer')
with:
files: |
m5dial-simple-pointer.elf
m5dial-simple-pointer.bin

0 comments on commit 1af9e53

Please sign in to comment.