From 632cb279f1c90b83064dcdf4d38bc80ab8c59442 Mon Sep 17 00:00:00 2001 From: Benoit Blanchon Date: Thu, 4 Jan 2024 18:05:31 +0100 Subject: [PATCH] CI: publish package to PlatformIO registry Ported from 44d2d4786383547f4fd7903135285c6b40ba68ef --- .github/workflows/release.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f298944bb..55d072e93 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -76,3 +76,20 @@ jobs: - name: Publish run: bash -eux extras/scripts/publish-particle-library.sh timeout-minutes: 5 + + platformio: + name: PlatformIO + runs-on: ubuntu-latest + steps: + - name: Set up Python 3.x + uses: actions/setup-python@v4 + with: + python-version: "3.x" + - name: Install PlatformIO + run: pip install platformio + - name: Checkout + uses: actions/checkout@v3 + - name: Publish + run: pio pkg publish --no-interactive --no-notify + env: + PLATFORMIO_AUTH_TOKEN: ${{ secrets.PLATFORMIO_AUTH_TOKEN }}