-
Notifications
You must be signed in to change notification settings - Fork 3
57 lines (48 loc) · 1.23 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Release
on:
release:
types:
- published
permissions:
contents: write
packages: write
jobs:
release:
runs-on: ubuntu-latest
strategy:
matrix:
project:
- audio
- audio_recorder
- clock
- hardware_test
- light_dial_game
- light_show
- wifi_sniffer
steps:
- name: Checkout repository
uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: |
~/.cache/pip
~/.platformio/.cache
key: ${{ runner.os }}-pio
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install PlatformIO Core
run: pip install --upgrade platformio
- name: Build Project
run: pio run
working-directory: ./y-board-v3/${{ matrix.project }}
- name: Make binary
run: python3 build.py ${{ matrix.project }}
working-directory: ./y-board-v3
- name: Upload Artifacts to Release
uses: xresloader/upload-to-github-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
file: "./y-board-v3/build/${{ matrix.project }}.bin"
tags: true