Skip to content

Commit 7dcd7f0

Browse files
committed
feat: pio-publish
1 parent 1b5a882 commit 7dcd7f0

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/pio-publish.yaml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Publish to PlatformIO
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
publish:
8+
runs-on: ubuntu-latest
9+
10+
defaults:
11+
run:
12+
working-directory: .
13+
14+
steps:
15+
- uses: actions/checkout@v3
16+
- uses: actions/cache@v3
17+
with:
18+
path: |
19+
~/.cache/pip
20+
~/.platformio/.cache
21+
key: ${{ runner.os }}-pio
22+
- uses: actions/setup-python@v4
23+
with:
24+
python-version: "3.9"
25+
- name: Install PlatformIO Core
26+
run: pip install --upgrade platformio
27+
- name: Publish
28+
env:
29+
PLATFORMIO_AUTH_TOKEN: ${{ secrets.PLATFORMIO_PAT }}
30+
run: pio pkg publish --no-interactive

0 commit comments

Comments
 (0)