From 17d8e3b4f8288abdefd3e1b119b47ce1d2085de8 Mon Sep 17 00:00:00 2001 From: lifehackerhansol Date: Wed, 3 Dec 2025 21:07:33 -0800 Subject: [PATCH] workflow: add release pipeline - Minor change in push pipeline to remove spaces from artifact name - Create release pipeline with the same steps that will upload a zipped package to every published release automatically --- .github/workflows/nightly.yml | 2 +- .github/workflows/release.yml | 39 +++++++++++++++++++++++++++++++++++ 2 files changed, 40 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 1f11179..8dfa30b 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -30,4 +30,4 @@ jobs: path: | _pico/ LAUNCHER.nds - name: Pico Launcher + name: Pico_Launcher diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..1361cfc --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,39 @@ +name: Build Pico Launcher release + +on: + release: + types: [published] + +jobs: + pico_launcher: + runs-on: ubuntu-latest + container: skylyrac/blocksds:slim-v1.13.1 + name: Build Pico Launcher + steps: + - name: Checkout repo + uses: actions/checkout@v4 + with: + submodules: true + - name: Install zip + run: + apt-get update && apt-get -y install zip + - name: Run build script + run: | + make + - name: Publish build to GH Actions + uses: actions/upload-artifact@v4 + with: + path: | + _pico/ + LAUNCHER.nds + name: Pico_Launcher + - name: Package for release + run: | + mkdir Pico_Launcher + cp -r _pico/ LAUNCHER.nds Pico_Launcher + cd Pico_Launcher && zip -r $PWD.zip * + - name: Release + uses: softprops/action-gh-release@v2 + with: + files: | + Pico_Launcher.zip