Skip to content

Commit ba3d70b

Browse files
committed
Update CI
1 parent 3c9025e commit ba3d70b

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

.github/workflows/platformio.yml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,12 @@ jobs:
2222
with:
2323
pio-environment-list: '["basicUsage", "infoPage"]'
2424

25-
PlatformIO-Package:
26-
if: ${{ (github.ref_type != 'tag') && (github.ref_name == 'master') }}
25+
PlatformIO-PackageAndPublish:
26+
name: PIO - Package and Publish on Tag
27+
if: ${{ (github.ref_type == 'tag') || (github.ref_name == 'main') }}
2728
needs: PlatformIO-Build
2829
uses: sensirion/.github/.github/workflows/upt.platformio.publish.yml@main
2930
with:
30-
should-publish: false
31-
32-
PlatformIO-Publish:
33-
uses: sensirion/.github/.github/workflows/upt.platformio.publish.yml@main
34-
if: github.ref_type == 'tag'
35-
needs: PlatformIO-Build
36-
with:
37-
should-publish: true
31+
should-publish: ${{ github.ref_type == 'tag' }}
3832
secrets:
3933
pio-registry-token: ${{ secrets.PIO_MKTSW_TOKEN }}

0 commit comments

Comments
 (0)