Skip to content

Commit ad24148

Browse files
authored
Add release workflow (#45)
1 parent 41b08f9 commit ad24148

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/publish.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Publish
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
publish:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/[email protected]
12+
- name: Set up Python
13+
uses: actions/[email protected]
14+
with:
15+
python-version: '3.x'
16+
- name: Install platformio
17+
run: pip install --upgrade platformio
18+
- name: Publish package
19+
env:
20+
PLATFORMIO_AUTH_TOKEN: ${{ secrets.PLATFORMIO_AUTH_TOKEN }}
21+
run: pio package publish --owner esphome --non-interactive

0 commit comments

Comments
 (0)