diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000..a62eb60a --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,26 @@ +name: Build and Run Genshin Stella Mod + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + build-and-run: + runs-on: windows-latest + + steps: + - uses: actions/checkout@v2 + + - name: Setup MSBuild Path + uses: microsoft/setup-msbuild@v1.0.2 + + - name: Restore NuGet Packages + run: msbuild -t:restore + + - name: Build Solution + run: msbuild Genshin-Stella-Mod.sln -p:Configuration=Release -p:Platform="Any CPU" + + - name: Run Genshin Stella Mod + run: .\Build\Release\Stella Mod Launcher.exe diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml index a89e52d5..767640db 100644 --- a/.github/workflows/labeler.yml +++ b/.github/workflows/labeler.yml @@ -5,9 +5,11 @@ on: jobs: triage: + runs-on: ubuntu-latest + permissions: contents: read pull-requests: write - runs-on: ubuntu-latest + steps: - uses: actions/labeler@v5