Updated PlatformIO action

This commit is contained in:
John Wellbelove 2025-08-13 16:10:35 +01:00
parent 534fcc6ebe
commit 1af74206d2

View File

@ -9,18 +9,18 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.x"
- name: Install PlatformIO
run: pip install platformio
- name: Publish to PlatformIO Registry
run: pio package publish --owner etlcpp --non-interactive
env:
PIO_API_TOKEN: ${{ secrets.PLATFORMIO_TOKEN }}
run: |
echo "Triggering PlatformIO library update for ETL..."
curl -X POST \
-H "Authorization: Bearer $PLATFORMIO_TOKEN" \
-H "Content-Type: application/json" \
https://api.platformio.org/v3/lib/update \
-d '{
"owner": "ETLCPP",
"name": "Embedded Template Library"
}'
PLATFORMIO_AUTH_TOKEN: ${{ secrets.PLATFORMIO_TOKEN }}