diff --git a/.github/workflows/LANCommander.PlaynitePlugin.yml b/.github/workflows/LANCommander.PlaynitePlugin.yml new file mode 100644 index 0000000..7034828 --- /dev/null +++ b/.github/workflows/LANCommander.PlaynitePlugin.yml @@ -0,0 +1,30 @@ +# This workflow will build a .NET project +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net + +name: LANCommander Playnite Plugin + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + build: + + runs-on: windows-latest + + steps: + - uses: actions/checkout@v3 + - name: Setup MSBuild + uses: microsoft/setup-msbuild@v1.3.1 + - name: Setup NuGet + uses: NuGet/setup-nuget@v1.1.1 + - name: Restore NuGet packages + run: nuget restore LANCommander.sln + - name: Build and Publish Library + run: msbuild LANCommander.Playnite.Extension/LANCommander.PlaynitePlugin.csproj /p:Configuration=Release;OutputPath=Build + - name: Upload Artifact + uses: actions/upload-artifact@v3.1.2 + with: + path: Build