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