Skip to content

Commit

Permalink
Update 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 222e157 commit 42b8a17
Showing 1 changed file with 16 additions and 12 deletions.
28 changes: 16 additions & 12 deletions .github/workflows/platformio_publish_pkg.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,29 @@
name: Publish Library
name: Publish Library to PlatformIO Registry

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


env:
PLATFORMIO_AUTH_TOKEN: ${{ secrets.PLATFORMIO_AUTH_TOKEN }}

jobs:
build:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout code
- name: Checkout
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2

- name: Use Node.js 16.x
uses: actions/setup-node@v2
with:
python-version: '3.x'
node-version: '16.x'

- name: Install dependencies
run: pip install -r requirements.txt
run: npm install

- name: Publish to PlatformIO Registry
run: pio pkg publish
env:
PLATFORMIO_AUTH_TOKEN: ${{ secrets.PLATFORMIO_AUTH_TOKEN }}
run: |
platformio account login $PLATFORMIO_AUTH_TOKEN
platformio lib publish --library-dir=. --release
PLATFORMIO_AUTH_TOKEN: ${{ env.PLATFORMIO_AUTH_TOKEN }}

0 comments on commit 42b8a17

Please sign in to comment.