Skip to content

Commit

Permalink
fix workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikMeinders committed Aug 8, 2024
1 parent 8fd765c commit 43e3420
Showing 1 changed file with 21 additions and 17 deletions.
38 changes: 21 additions & 17 deletions .github/workflows/publishpio.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@ on:

jobs:
build:

runs-on: ubuntu-latest

name: Publish PlatformIO package
steps:

- uses: actions/checkout@v4
Expand Down Expand Up @@ -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

0 comments on commit 43e3420

Please sign in to comment.