workflow: add release pipeline

- Minor change in push pipeline to remove spaces from artifact name
- Add artifact move step to add all files to a single folder before
  pushing to artifacts
- Create release pipeline with the same steps that will upload a zipped
  package to every published release automatically
This commit is contained in:
lifehackerhansol
2025-12-03 20:28:24 -08:00
parent a8f5d880b2
commit 8e98796be2
2 changed files with 73 additions and 7 deletions

View File

@@ -47,14 +47,15 @@ jobs:
- name: Run build script
run: |
make PICO_PLATFORM=${{ matrix.platform }}
mv picoLoader7.bin data/picoLoader7.bin
mv picoLoader9_${{ matrix.platform }}.bin data/picoLoader9.bin
- name: Package artifact
run: |
mkdir Pico_Loader_${{ matrix.platform }}
mv picoLoader7.bin data/aplist.bin data/savelist.bin Pico_Loader_${{ matrix.platform }}
mv picoLoader9_${{ matrix.platform }}.bin Pico_Loader_${{ matrix.platform }}/picoLoader9.bin
- name: Publish build to GH Actions
uses: actions/upload-artifact@v4
with:
path: |
data/aplist.bin
data/savelist.bin
data/picoLoader7.bin
data/picoLoader9.bin
name: Pico Loader for ${{ matrix.platform }}
Pico_Loader_${{ matrix.platform }}
# For some reason without explicitly setting a name there is some odd conflicts
name: Pico_Loader_${{ matrix.platform }}