From a4a1c4b781674173e9c98ae46654bd2d04516a0f Mon Sep 17 00:00:00 2001 From: XieonGaming Date: Tue, 29 Jul 2025 22:36:03 -0400 Subject: [PATCH] Create dotnet-build.yml --- .github/workflows/dotnet-build.yml | 51 ++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 .github/workflows/dotnet-build.yml diff --git a/.github/workflows/dotnet-build.yml b/.github/workflows/dotnet-build.yml new file mode 100644 index 000000000..6f02ec814 --- /dev/null +++ b/.github/workflows/dotnet-build.yml @@ -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 }}