Skip to content

Commit cc566e8

Browse files
committed
Add release script
1 parent 7d1c1eb commit cc566e8

File tree

1 file changed

+64
-0
lines changed

1 file changed

+64
-0
lines changed
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
# This workflow will install Python dependencies, run tests and lint with a single version of Python
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
3+
4+
name: Generate Release
5+
6+
on:
7+
push:
8+
branches: [ release_letssteam ]
9+
workflow_dispatch:
10+
11+
jobs:
12+
build:
13+
14+
runs-on: ubuntu-22.04
15+
16+
steps:
17+
- uses: actions/checkout@v2
18+
- name: Set up Python 3.10
19+
uses: actions/setup-python@v2
20+
with:
21+
python-version: "3.10"
22+
23+
- name: Install dependencies
24+
run: |
25+
sudo apt --yes install gcc-arm-none-eabi
26+
python -m pip install --upgrade pip
27+
pip install -r requirements.txt
28+
29+
- name: Compile stm32f103xb_bl
30+
run: |
31+
python tools/progen_compile.py -t make_gcc_arm --clean --parallel stm32f103xb_bl
32+
33+
- name: Compile stm32f103xb_stm32wb55rg_if
34+
run: |
35+
python tools/progen_compile.py -t make_gcc_arm --clean --parallel stm32f103xb_stm32wb55rg_if
36+
37+
- name: Compile stm32f103xb_stm32l475vg_if
38+
run: |
39+
python tools/progen_compile.py -t make_gcc_arm --clean --parallel stm32f103xb_stm32l475vg_if
40+
41+
- name: Compile stm32f103xb_steami32_if
42+
run: |
43+
python tools/progen_compile.py -t make_gcc_arm --clean --parallel stm32f103xb_steami32_if
44+
45+
- name: Generate Release
46+
uses: "marvinpinto/action-automatic-releases@latest"
47+
with:
48+
repo_token: "${{ secrets.GITHUB_TOKEN }}"
49+
prerelease: false
50+
automatic_release_tag: "lastest"
51+
files: |
52+
projectfiles/make_gcc_arm/stm32f103xb_bl/build/stm32f103xb_bl.bin
53+
projectfiles/make_gcc_arm/stm32f103xb_bl/build/stm32f103xb_bl_crc.bin
54+
projectfiles/make_gcc_arm/stm32f103xb_bl/build/stm32f103xb_bl_crc.txt
55+
projectfiles/make_gcc_arm/stm32f103xb_stm32wb55rg_if/build/stm32f103xb_stm32wb55rg_if.bin
56+
projectfiles/make_gcc_arm/stm32f103xb_stm32wb55rg_if/build/stm32f103xb_stm32wb55rg_if_crc.bin
57+
projectfiles/make_gcc_arm/stm32f103xb_stm32wb55rg_if/build/stm32f103xb_stm32wb55rg_if_crc.txt
58+
projectfiles/make_gcc_arm/stm32f103xb_stm32l475vg_if/build/stm32f103xb_stm32l475vg_if.bin
59+
projectfiles/make_gcc_arm/stm32f103xb_stm32l475vg_if/build/stm32f103xb_stm32l475vg_if_crc.bin
60+
projectfiles/make_gcc_arm/stm32f103xb_stm32l475vg_if/build/stm32f103xb_stm32l475vg_if_crc.txt
61+
projectfiles/make_gcc_arm/stm32f103xb_steami32_if/build/stm32f103xb_steami32_if.bin
62+
projectfiles/make_gcc_arm/stm32f103xb_steami32_if/build/stm32f103xb_steami32_if_crc.bin
63+
projectfiles/make_gcc_arm/stm32f103xb_steami32_if/build/stm32f103xb_steami32_if_crc.txt
64+

0 commit comments

Comments
 (0)