diff --git a/.github/workflows/nuget.yml b/.github/workflows/nuget.yml new file mode 100644 index 0000000..9623e1a --- /dev/null +++ b/.github/workflows/nuget.yml @@ -0,0 +1,32 @@ +name: C# with Nuget +on: + push: + branches: + - main + pull_request: + branches: + - main +permissions: + contents: read +jobs: + build: + runs-on: windows-latest + steps: + - uses: actions/checkout@main + - name: Setup .NET + uses: actions/setup-dotnet@main + with: + dotnet-version: 8.0.x + - name: Restore Dependencies + working-directory: ./appCs + run: dotnet restore + - name: Build with Nuget + working-directory: ./appCs + run: dotnet build --no-restore + - name: Upload Artifact + uses: actions/upload-artifact@main + with: + name: compiled-artifact-cs + path: | + ./appCs/bin/Debug/net8.0/*.exe + ./appCs/bin/Debug/net8.0/*.dll