From 9bfa5d429a4c7c5c0d007f61716388d14d73f8c3 Mon Sep 17 00:00:00 2001 From: AlexGyver Date: Tue, 2 Jun 2026 20:57:28 +0300 Subject: [PATCH] create workflow --- .github/workflows/pio-publish.yml | 32 +++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/pio-publish.yml diff --git a/.github/workflows/pio-publish.yml b/.github/workflows/pio-publish.yml new file mode 100644 index 0000000..3d774b5 --- /dev/null +++ b/.github/workflows/pio-publish.yml @@ -0,0 +1,32 @@ + +name: Publish to PlatformIO Registry + +on: + release: + types: [published] + +jobs: + publish: + runs-on: ubuntu-latest + + steps: + - name: Checkout release tag + uses: actions/checkout@v4 + with: + ref: ${{ github.event.release.tag_name }} + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: "3.x" + + - name: Install PlatformIO + run: pip install -U platformio + + - name: Check package + run: pio pkg pack + + - name: Publish to PlatformIO Registry + env: + PLATFORMIO_AUTH_TOKEN: ${{ secrets.PLATFORMIO_AUTH_TOKEN }} + run: pio pkg publish --owner gyverlibs --non-interactive