mirror of
https://github.com/ETLCPP/etl.git
synced 2026-04-30 19:09:10 +08:00
Updated PlatformIO action
This commit is contained in:
parent
534fcc6ebe
commit
1af74206d2
24
.github/workflows/platformio-update.yml
vendored
24
.github/workflows/platformio-update.yml
vendored
@ -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 }}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user