From 3280446c7e875e970b1223f7a03de2c73f006cf0 Mon Sep 17 00:00:00 2001 From: Professor Fartsalot Date: Sun, 31 Aug 2025 01:35:49 -0400 Subject: [PATCH] Create build.yml --- .gitea/workflows/build.yml | 39 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .gitea/workflows/build.yml diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml new file mode 100644 index 0000000..05e844e --- /dev/null +++ b/.gitea/workflows/build.yml @@ -0,0 +1,39 @@ +name: .NET Build + +on: + push: + branches: ['*'] + pull_request: + branches: ['*'] + +jobs: + build: + runs-on: self-hosted # Uses your custom runner + steps: + - name: Checkout repository + uses: actions/checkout@v4 + with: + submodules: true + + - name: Restore .NET dependencies + run: dotnet restore + + - name: Download Dalamud + run: | + mkdir -p "$HOME/.local/share/XIVLauncher/addon/Hooks/dev" + wget https://goatcorp.github.io/dalamud-distrib/stg/latest.zip -O latest.zip + unzip -o latest.zip -d "$HOME/.local/share/XIVLauncher/addon/Hooks/dev/" + + - name: Build project + run: dotnet build --no-restore --configuration Release --nologo + + - name: Publish Windows executable + run: dotnet publish -c Release -r win-x64 --self-contained true -o ./publish + + - name: Archive published files + run: zip -r SnowcloakClient.zip ./publish/* + + - name: Upload build artifact + uses: actions/upload-artifact@v4 + with: + path: ./publish/*