-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (32 loc) · 1.03 KB
/
publishpio.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
name: Publish PlatformIO package
steps:
- uses: actions/checkout@v4
- name: Semantic Release
id: semantic
uses: cycjimmy/semantic-release-action@v4
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- 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