From 40c497fcfeaa451acad96aa94020a0d7b73d0dca Mon Sep 17 00:00:00 2001 From: Timerix22 <87668556+Timerix22@users.noreply.github.com> Date: Sat, 6 Jan 2024 19:59:23 +0600 Subject: [PATCH] build_all workflow --- .github/workflows/build_all.yml | 48 +++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 .github/workflows/build_all.yml diff --git a/.github/workflows/build_all.yml b/.github/workflows/build_all.yml new file mode 100644 index 0000000..cb40cc7 --- /dev/null +++ b/.github/workflows/build_all.yml @@ -0,0 +1,48 @@ +name: build_all + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + build-server: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Setup .NET + uses: actions/setup-dotnet@v3 + with: + dotnet-version: 8.0.x + + - name: Build + run: cd minecraft-launcher-server && ./publish.sh + + - name: Upload artifacts + uses: actions/upload-artifact@v3 + with: + name: minecraft-launcher-server + path: minecraft-launcher-server/bin/publish/ + + build-client: + runs-on: windows-2019 + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Setup .NET + uses: actions/setup-dotnet@v3 + with: + dotnet-version: 8.0.x + + - name: Build + run: cd minecraft-launcher-client && ./publish.sh + + - name: Upload artifacts + uses: actions/upload-artifact@v3 + with: + name: minecraft-launcher-client + path: minecraft-launcher-client/bin/publish/