build_all workflow
This commit is contained in:
parent
9da952ece3
commit
40c497fcfe
48
.github/workflows/build_all.yml
vendored
Normal file
48
.github/workflows/build_all.yml
vendored
Normal file
@ -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/
|
||||
Loading…
Reference in New Issue
Block a user