-
Notifications
You must be signed in to change notification settings - Fork 56
186 lines (166 loc) · 5.59 KB
/
pio_release.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
name: Upload platformio library
on:
push:
branches:
- main
tags:
- "*"
workflow_dispatch:
jobs:
check_valid_tag:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: No upload if tag is a release candidate
if: contains(github.event.ref, 'rc')
run: |
echo "Stop job: do not upload a release candidate tag"
exit 1
deploy_engine:
needs: check_valid_tag
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: "3.x"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install platformio
- name: publish luos engine
env:
PLATFORMIO_AUTH_TOKEN: ${{ secrets.PIO_TOKEN }}
run: |
# ***** Luos engine publication *****
pio package pack
pio package publish --owner luos --non-interactive
deploy_gate:
needs: check_valid_tag
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: "3.x"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install platformio
- name: publish gate tool
env:
PLATFORMIO_AUTH_TOKEN: ${{ secrets.PIO_TOKEN }}
run: |
# ***** Gate publication *****
cd tool_services/gate
mkdir examples
# Arduino
mkdir examples/Arduino
mkdir examples/Arduino/serial
cp -r ../../examples/projects/Arduino/gate_serialcom/* examples/Arduino/serial/
# l0
mkdir examples/l0
mkdir examples/l0/serial
cp -r ../../examples/projects/l0/gate_serialcom/* examples/l0/serial/
# NUCLEO-F072RB
mkdir examples/NUCLEO-F072RB
mkdir examples/NUCLEO-F072RB/serial
cp -r ../../examples/projects/NUCLEO-F072RB/gate_serialcom/* examples/NUCLEO-F072RB/serial/
# NUCLEO-F401RE
mkdir examples/NUCLEO-F401RE
mkdir examples/NUCLEO-F401RE/serial
cp -r ../../examples/projects/NUCLEO-F401RE/gate_serialcom/* examples/NUCLEO-F401RE/serial/
# NUCLEO-F410RB
mkdir examples/NUCLEO-F410RB
mkdir examples/NUCLEO-F410RB/serial
cp -r ../../examples/projects/NUCLEO-F410RB/gate_serialcom/* examples/NUCLEO-F410RB/serial/
# NUCLEO-G431KB
mkdir examples/NUCLEO-G431KB
mkdir examples/NUCLEO-G431KB/serial
cp -r ../../examples/projects/NUCLEO-G431KB/gate_serialcom/* examples/NUCLEO-G431KB/serial/
# NUCLEO-G474RE
mkdir examples/NUCLEO-G474RE
mkdir examples/NUCLEO-G474RE/serial
cp -r ../../examples/projects/NUCLEO-G474RE/gate_serialcom/* examples/NUCLEO-G474RE/serial/
# NUCLEO-L432KC
mkdir examples/NUCLEO-L432KC
mkdir examples/NUCLEO-L432KC/serial
cp -r ../../examples/projects/NUCLEO-L432KC/gate_serialcom/* examples/NUCLEO-L432KC/serial/
# STM32F4-discovery
mkdir examples/STM32F4-discovery
mkdir examples/STM32F4-discovery/serial
cp -r ../../examples/projects/STM32F4-discovery/gate_serialcom/* examples/STM32F4-discovery/serial/
pio package pack
pio package publish --owner luos --non-interactive
cd ../..
deploy_pipe:
needs: check_valid_tag
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: "3.x"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install platformio
- name: publish pipe driver
env:
PLATFORMIO_AUTH_TOKEN: ${{ secrets.PIO_TOKEN }}
run: |
# ***** Pipe publication *****
cd tool_services/pipe
# We don't publish examples with this one.
pio package pack
pio package publish --owner luos --non-interactive
cd ../..
deploy_robus:
needs: check_valid_tag
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: "3.x"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install platformio
- name: publish robus network
env:
PLATFORMIO_AUTH_TOKEN: ${{ secrets.PIO_TOKEN }}
run: |
# ***** Robus network publication *****
cd network/robus_network
# We don't publish examples with this one.
pio package pack
pio package publish --owner luos --non-interactive
cd ../..
deploy_serial:
needs: check_valid_tag
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: "3.x"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install platformio
- name: publish robus network
env:
PLATFORMIO_AUTH_TOKEN: ${{ secrets.PIO_TOKEN }}
run: |
# ***** Serial network publication *****
cd network/serial_network
# We don't publish examples with this one.
pio package pack
pio package publish --owner luos --non-interactive
cd ../..