Skip to content

Commit

Permalink
added PIO workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
qfisch committed Feb 23, 2024
1 parent 8f387ed commit 5124838
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/platformio.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: PIO Lib

on:
pull_request:
branches:
- master
push:
branches:
- master
tags:
- "[0-9]+.[0-9]+.[0-9]+"

jobs:
PlatformIO-Check:
uses: sensirion/.github/.github/workflows/platformio_check.yml@main
with:
pio-environment-list: '["basicUsage", "advancedUsage", "hacksterExample"]'

PlatformIO-Build:
uses: sensirion/.github/.github/workflows/platformio_build.yml@main
needs: PlatformIO-Check
with:
pio-environment-list: '["basicUsage", "advancedUsage", "hacksterExample"]'

PlatformIO-Package:
if: ${{ (github.ref_type != 'tag') && (github.ref_name == 'master') }}
needs: PlatformIO-Build
uses: sensirion/.github/.github/workflows/platformio_publish.yml@main
with:
should-publish: false

PlatformIO-Publish:
uses: sensirion/.github/.github/workflows/platformio_publish.yml@main
if: github.ref_type == 'tag'
needs: PlatformIO-Build
with:
should-publish: true
secrets:
pio-registry-token: ${{ secrets.PIO_MKTSW_TOKEN }}

0 comments on commit 5124838

Please sign in to comment.