File tree Expand file tree Collapse file tree 1 file changed +26
-5
lines changed Expand file tree Collapse file tree 1 file changed +26
-5
lines changed Original file line number Diff line number Diff line change 1+ name : Release workflow
2+
13on :
24 push :
35 # Sequence of patterns matched against refs/tags
46 tags :
57 - ' v*' # Push events to matching v*, i.e. v1.0, v20.15.10
68
7- name : Create Release
8-
99jobs :
10- build :
10+ # Create the release from the tag
11+ create-release :
1112 name : Create Release
1213 runs-on : ubuntu-latest
1314 steps :
@@ -17,11 +18,31 @@ jobs:
1718 id : create_release
1819 uses : actions/create-release@v1
1920 env :
20- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
21+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
2122 with :
2223 tag_name : ${{ github.ref }}
2324 release_name : Release ${{ github.ref }}
2425 body : |
2526 See the [CHANGELOG](CHANGELOG.md)
2627 draft : false
27- prerelease : false
28+ prerelease : false
29+
30+ # Publish package to PlatformIO
31+ publish-platformio :
32+ runs-on : ubuntu-latest
33+ steps :
34+ - name : Checkout code
35+ uses : actions/checkout@v4
36+
37+ - name : Set up Python
38+ uses : actions/setup-python@v5
39+ with :
40+ python-version : " 3.x"
41+
42+ - name : Install PlatformIO
43+ run : pip install platformio
44+
45+ - name : Publish to PlatformIO
46+ env :
47+ PLATFORMIO_AUTH_TOKEN : ${{ secrets.PLATFORMIO_AUTH_TOKEN }}
48+ run : pio pkg publish --type library --non-interactive
You can’t perform that action at this time.
0 commit comments