Update workflow files

This commit is contained in:
gab-k committed 2025-01-02 10:37:18 +01:00
1 parent 738575263f
commit a93617de60
3 files changed
+131 -59

No files matched your search

+1 -59
View File
@@ -7,8 +7,6 @@ on:
branches:
- dev # Trigger on push to 'dev' branch
- main # Trigger on push to 'main' branch
tags:
- '*' # Trigger on any tag push
paths:
- '.github/workflows/build_sw.yml' # Trigger if this workflow file changes
- 'Software/**' # Trigger if any file in the 'Software' directory changes
@@ -41,60 +39,4 @@ jobs:
- name: Build
# Build your program with the given configuration
run: cmake --build ${{github.workspace}}/Software/build --config ${{env.BUILD_TYPE}}
- name: Upload build files as artifact
uses: actions/upload-artifact@v4
with:
name: build_files
path: ${{github.workspace}}/Software/build
release-dev:
if: github.ref == 'refs/heads/dev' # Only deploy on 'dev' branch
runs-on: ubuntu-latest
needs: build
steps:
- name: Download build files artifact
uses: actions/download-artifact@v4
with:
name: build_files
- name: Display structure of downloaded files
run: ls
- name: Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
prerelease: true
files: |
RP2040-Decoder.bin
RP2040-Decoder.dis
RP2040-Decoder.elf
RP2040-Decoder.elf.map
RP2040-Decoder.hex
RP2040-Decoder.uf2
release-main:
if: github.ref == 'refs/heads/main' # Only deploy on 'main' branch
runs-on: ubuntu-latest
needs: build
steps:
- name: Download build files artifact
uses: actions/download-artifact@v4
with:
name: build_files
- name: Display structure of downloaded files
run: ls
- name: Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
RP2040-Decoder.bin
RP2040-Decoder.dis
RP2040-Decoder.elf
RP2040-Decoder.elf.map
RP2040-Decoder.hex
RP2040-Decoder.uf2