mirror of
https://github.com/LNH-team/pico-launcher.git
synced 2026-06-02 09:06:54 +02:00
Merge pull request #12 from lifehackerhansol/workflow-release
workflow: add release pipeline
This commit is contained in:
2
.github/workflows/nightly.yml
vendored
2
.github/workflows/nightly.yml
vendored
@@ -30,4 +30,4 @@ jobs:
|
|||||||
path: |
|
path: |
|
||||||
_pico/
|
_pico/
|
||||||
LAUNCHER.nds
|
LAUNCHER.nds
|
||||||
name: Pico Launcher
|
name: Pico_Launcher
|
||||||
|
|||||||
39
.github/workflows/release.yml
vendored
Normal file
39
.github/workflows/release.yml
vendored
Normal file
@@ -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
|
||||||
Reference in New Issue
Block a user