Skip to content

Commit 9db7585

Browse files
committed
Add PIO publish on new tag
1 parent 1c34b52 commit 9db7585

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
on:
2+
push:
3+
tags:
4+
- "v[0-9]+.[0-9]+.[0-9]+" # Push events to matching v*, i.e. v1.0, v20.15.10
5+
6+
name: PlatformIO Publish
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout code
12+
uses: actions/checkout@v3
13+
- name: Install Python
14+
uses: actions/setup-python@v4
15+
with:
16+
python-version: '3.9'
17+
- name: Install PlatformIO Core
18+
run: pip install --upgrade platformio
19+
- name: Publish
20+
# requires the PLATFORMIO_AUTH_TOKEN env variable: https://docs.platformio.org/en/latest/envvars.html#envvar-PLATFORMIO_AUTH_TOKEN
21+
# currently msr's account
22+
run: pio pkg publish --owner thingpulse

0 commit comments

Comments
 (0)