From cc566e8b4742d1c4c734a88dc0505ac6ad3db0ab Mon Sep 17 00:00:00 2001 From: Jonathan BAUDIN Date: Fri, 7 Jun 2024 14:51:54 +0200 Subject: [PATCH] Add release script --- .github/workflows/generate_release.yml | 64 ++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 .github/workflows/generate_release.yml diff --git a/.github/workflows/generate_release.yml b/.github/workflows/generate_release.yml new file mode 100644 index 000000000..68448e692 --- /dev/null +++ b/.github/workflows/generate_release.yml @@ -0,0 +1,64 @@ +# This workflow will install Python dependencies, run tests and lint with a single version of Python +# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions + +name: Generate Release + +on: + push: + branches: [ release_letssteam ] + workflow_dispatch: + +jobs: + build: + + runs-on: ubuntu-22.04 + + steps: + - uses: actions/checkout@v2 + - name: Set up Python 3.10 + uses: actions/setup-python@v2 + with: + python-version: "3.10" + + - name: Install dependencies + run: | + sudo apt --yes install gcc-arm-none-eabi + python -m pip install --upgrade pip + pip install -r requirements.txt + + - name: Compile stm32f103xb_bl + run: | + python tools/progen_compile.py -t make_gcc_arm --clean --parallel stm32f103xb_bl + + - name: Compile stm32f103xb_stm32wb55rg_if + run: | + python tools/progen_compile.py -t make_gcc_arm --clean --parallel stm32f103xb_stm32wb55rg_if + + - name: Compile stm32f103xb_stm32l475vg_if + run: | + python tools/progen_compile.py -t make_gcc_arm --clean --parallel stm32f103xb_stm32l475vg_if + + - name: Compile stm32f103xb_steami32_if + run: | + python tools/progen_compile.py -t make_gcc_arm --clean --parallel stm32f103xb_steami32_if + + - name: Generate Release + uses: "marvinpinto/action-automatic-releases@latest" + with: + repo_token: "${{ secrets.GITHUB_TOKEN }}" + prerelease: false + automatic_release_tag: "lastest" + files: | + projectfiles/make_gcc_arm/stm32f103xb_bl/build/stm32f103xb_bl.bin + projectfiles/make_gcc_arm/stm32f103xb_bl/build/stm32f103xb_bl_crc.bin + projectfiles/make_gcc_arm/stm32f103xb_bl/build/stm32f103xb_bl_crc.txt + projectfiles/make_gcc_arm/stm32f103xb_stm32wb55rg_if/build/stm32f103xb_stm32wb55rg_if.bin + projectfiles/make_gcc_arm/stm32f103xb_stm32wb55rg_if/build/stm32f103xb_stm32wb55rg_if_crc.bin + projectfiles/make_gcc_arm/stm32f103xb_stm32wb55rg_if/build/stm32f103xb_stm32wb55rg_if_crc.txt + projectfiles/make_gcc_arm/stm32f103xb_stm32l475vg_if/build/stm32f103xb_stm32l475vg_if.bin + projectfiles/make_gcc_arm/stm32f103xb_stm32l475vg_if/build/stm32f103xb_stm32l475vg_if_crc.bin + projectfiles/make_gcc_arm/stm32f103xb_stm32l475vg_if/build/stm32f103xb_stm32l475vg_if_crc.txt + projectfiles/make_gcc_arm/stm32f103xb_steami32_if/build/stm32f103xb_steami32_if.bin + projectfiles/make_gcc_arm/stm32f103xb_steami32_if/build/stm32f103xb_steami32_if_crc.bin + projectfiles/make_gcc_arm/stm32f103xb_steami32_if/build/stm32f103xb_steami32_if_crc.txt + \ No newline at end of file