Skip to content

Commit

Permalink
Create platformio_publish_pkg.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Defozo authored Apr 11, 2023
1 parent 0712f00 commit 222e157
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/platformio_publish_pkg.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Publish Library

on:
push:
tags:
- 'v*.*.*'

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: pip install -r requirements.txt
- name: Publish to PlatformIO Registry
env:
PLATFORMIO_AUTH_TOKEN: ${{ secrets.PLATFORMIO_AUTH_TOKEN }}
run: |
platformio account login $PLATFORMIO_AUTH_TOKEN
platformio lib publish --library-dir=. --release

0 comments on commit 222e157

Please sign in to comment.