You've already forked pico-loader
mirror of
https://github.com/LNH-team/pico-loader.git
synced 2026-01-09 16:28:35 -08:00
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:
65
.github/workflows/release.yml
vendored
Normal file
65
.github/workflows/release.yml
vendored
Normal file
@@ -0,0 +1,65 @@
|
||||
name: Build Pico Loader release
|
||||
|
||||
on:
|
||||
release:
|
||||
types: [published]
|
||||
|
||||
jobs:
|
||||
pico_loader:
|
||||
strategy:
|
||||
matrix:
|
||||
platform: [
|
||||
"ACE3DS",
|
||||
"AK2",
|
||||
"AKRPG",
|
||||
"DSPICO",
|
||||
"DSTT",
|
||||
"EZP",
|
||||
"G003",
|
||||
"M3DS",
|
||||
"R4",
|
||||
"R4iDSN",
|
||||
"SUPERCARD"
|
||||
]
|
||||
runs-on: ubuntu-latest
|
||||
container: skylyrac/blocksds:slim-v1.13.1
|
||||
name: Build Pico Loader
|
||||
env:
|
||||
DOTNET_CLI_TELEMETRY_OPTOUT: 1
|
||||
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
|
||||
DOTNET_SYSTEM_GLOBALIZATION_INVARIANT: 1
|
||||
DOTNET_NOLOGO: true
|
||||
steps:
|
||||
- name: Checkout repo
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: true
|
||||
- uses: actions/setup-dotnet@v4
|
||||
with:
|
||||
dotnet-version: 9.x
|
||||
- name: Install zip
|
||||
run:
|
||||
apt-get update && apt-get -y install zip
|
||||
- name: Run build script
|
||||
run: |
|
||||
make PICO_PLATFORM=${{ matrix.platform }}
|
||||
- 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: |
|
||||
Pico_Loader_${{ matrix.platform }}
|
||||
# For some reason without explicitly setting a name there is some odd conflicts
|
||||
name: Pico_Loader_${{ matrix.platform }}
|
||||
- name: Package for release
|
||||
run: |
|
||||
cd Pico_Loader_${{ matrix.platform }} && zip -r $PWD.zip *
|
||||
- name: Release
|
||||
uses: softprops/action-gh-release@v2
|
||||
with:
|
||||
files: |
|
||||
Pico_Loader_${{ matrix.platform }}.zip
|
||||
Reference in New Issue
Block a user