From 43e3420850d9e18fad80dd8228b9d3e54c71ad55 Mon Sep 17 00:00:00 2001 From: Erik Meinders Date: Thu, 8 Aug 2024 17:17:31 +0900 Subject: [PATCH] fix workflow --- .github/workflows/publishpio.yml | 38 ++++++++++++++++++-------------- 1 file changed, 21 insertions(+), 17 deletions(-) diff --git a/.github/workflows/publishpio.yml b/.github/workflows/publishpio.yml index d3f502c..58ecb9f 100644 --- a/.github/workflows/publishpio.yml +++ b/.github/workflows/publishpio.yml @@ -5,9 +5,8 @@ on: jobs: build: - runs-on: ubuntu-latest - + name: Publish PlatformIO package steps: - uses: actions/checkout@v4 @@ -37,18 +36,23 @@ jobs: - name: Release akskrotate to easytocloud/homebrew-tap - - name: Set up Python - if: steps.semantic.outputs.new_release_published == 'true' - uses: actions/setup-python@v4 - - - name: Install PlatformIO - if: steps.semantic.outputs.new_release_published == 'true' - run: | - python -m pip install --upgrade pip - pip install platformio - - - name: Publish package - if: steps.semantic.outputs.new_release_published == 'true' - env: - PLATFORMIO_AUTH_TOKEN: ${{ secrets.PLATFORMIO_AUTH_TOKEN }} - run: platformio pkg publish --no-interactive + - name: Set up Python + if: steps.semantic.outputs.new_release_published == 'true' + uses: actions/setup-python@v4 + + - name: Install PlatformIO + if: steps.semantic.outputs.new_release_published == 'true' + run: | + python -m pip install --upgrade pip + pip install platformio + + - name: update release version + if: steps.semantic.outputs.new_release_published == 'true' + run: | + cicd/bump-version.sh + + - name: Publish package + if: steps.semantic.outputs.new_release_published == 'true' + env: + PLATFORMIO_AUTH_TOKEN: ${{ secrets.PLATFORMIO_AUTH_TOKEN }} + run: platformio pkg publish --no-interactive