Skip to content

Commit afa5da7

Browse files
committed
[CI] Add release workflow
1 parent 6622a0a commit afa5da7

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/release.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: "Release"
2+
3+
on: workflow_dispatch
4+
5+
jobs:
6+
release:
7+
name: Release RadioLib update
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- name: Checkout repository
12+
uses: actions/checkout@v4
13+
with:
14+
fetch-depth: 0
15+
16+
- name: Checkout latest tag
17+
run: git checkout $(git describe --tags $(git rev-list --tags --max-count=1))
18+
19+
- name: Setup Python
20+
- uses: actions/setup-python@v4
21+
with:
22+
python-version: '3.9'
23+
24+
- name: Install PlatformIO and ESP-IDF
25+
run: |
26+
pip install --upgrade platformio
27+
pip install --upgrade idf-component-manager
28+
29+
- name: PlatformIO publish
30+
env:
31+
PLATFORMIO_AUTH_TOKEN: ${{ secrets.PLATFORMIO_AUTH_TOKEN }}
32+
run: pio pkg publish --no-interactive
33+
34+
- name: ESP-IDF publish
35+
env:
36+
IDF_COMPONENT_API_TOKEN: ${{ secrets.IDF_COMPONENT_API_TOKEN }}
37+
run: compote component upload --name TestLib --namespace jgromes

0 commit comments

Comments
 (0)