Create dotnet-build.yml

This commit is contained in:
XieonGaming 2025-07-29 22:36:03 -04:00 committed by GitHub
parent 8b8e4438e8
commit a4a1c4b781
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

51
.github/workflows/dotnet-build.yml vendored Normal file
View File

@ -0,0 +1,51 @@
name: Build & Release Atmosphère
on:
push:
tags:
- 'v*' # Triggers on version tags like v1.9.2, v2.0.0, etc.
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repo (with submodules)
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y build-essential cmake ninja-build python3-pip \
gcc-arm-none-eabi libarchive-tools
- name: Build Atmosphère
run: make -j$(nproc)
- name: Create release zip
run: |
mkdir -p release_output
cp -r output/* release_output/ || true
zip -r atmosphere_build.zip release_output
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
name: ${{ github.ref_name }}
tag_name: ${{ github.ref_name }}
body: |
✅ This is an automated release of Atmosphère based on tag `${{ github.ref_name }}`
Built via GitHub Actions.
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload release asset
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ github.ref_name }}
files: atmosphere_build.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}