From 7dcd7f0bd6671075549b332ccdbba44e9c391b8f Mon Sep 17 00:00:00 2001 From: Aruna Tennakoon Date: Wed, 5 Mar 2025 16:06:48 +0000 Subject: [PATCH 1/2] feat: pio-publish --- .github/workflows/pio-publish.yaml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/pio-publish.yaml diff --git a/.github/workflows/pio-publish.yaml b/.github/workflows/pio-publish.yaml new file mode 100644 index 0000000..b83f4ec --- /dev/null +++ b/.github/workflows/pio-publish.yaml @@ -0,0 +1,30 @@ +name: Publish to PlatformIO + +on: + workflow_dispatch: + +jobs: + publish: + runs-on: ubuntu-latest + + defaults: + run: + working-directory: . + + steps: + - uses: actions/checkout@v3 + - uses: actions/cache@v3 + with: + path: | + ~/.cache/pip + ~/.platformio/.cache + key: ${{ runner.os }}-pio + - uses: actions/setup-python@v4 + with: + python-version: "3.9" + - name: Install PlatformIO Core + run: pip install --upgrade platformio + - name: Publish + env: + PLATFORMIO_AUTH_TOKEN: ${{ secrets.PLATFORMIO_PAT }} + run: pio pkg publish --no-interactive \ No newline at end of file From 98ab22d276d3dd00bfe2fb4fed33c54d92c6d354 Mon Sep 17 00:00:00 2001 From: Aruna Tennakoon Date: Wed, 5 Mar 2025 23:27:23 +0700 Subject: [PATCH 2/2] Update pio-publish.yaml --- .github/workflows/pio-publish.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pio-publish.yaml b/.github/workflows/pio-publish.yaml index b83f4ec..8966ab6 100644 --- a/.github/workflows/pio-publish.yaml +++ b/.github/workflows/pio-publish.yaml @@ -27,4 +27,4 @@ jobs: - name: Publish env: PLATFORMIO_AUTH_TOKEN: ${{ secrets.PLATFORMIO_PAT }} - run: pio pkg publish --no-interactive \ No newline at end of file + run: pio pkg publish --owner sinricpro --no-interactive