Skip to content

Commit

Permalink
Add workflow to publish to platformio on release (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
jesserockz authored Sep 8, 2024
1 parent 609b4ba commit acdd7cd
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Publish

on:
release:
types: [published]

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Set up Python
uses: actions/[email protected]
with:
python-version: '3.x'
- name: Install platformio
run: pip install --upgrade platformio
- name: Publish package
env:
PLATFORMIO_AUTH_TOKEN: ${{ secrets.PLATFORMIO_AUTH_TOKEN }}
run: pio package publish --owner esphome --non-interactive

0 comments on commit acdd7cd

Please sign in to comment.