name: Build and Publish on: push: branches: [ "main" ] pull_request: branches: [ "main" ] jobs: build: runs-on: windows-latest steps: - name: Checkout uses: actions/checkout@v4 - name: Setup .NET uses: actions/setup-dotnet@v4 with: dotnet-version: 10.0.x - name: Restore run: dotnet restore - name: Build Release env: GITHUB_RUN_NUMBER: ${{ github.run_number }} GITHUB_SHA: ${{ github.sha }} run: dotnet build -c Release --no-restore - name: Publish Release env: GITHUB_RUN_NUMBER: ${{ github.run_number }} GITHUB_SHA: ${{ github.sha }} run: dotnet publish -c Release -r win-x64 --self-contained true --no-build - name: Upload Artifact uses: actions/upload-artifact@v4 with: name: splitter-win-x64 path: bin/Release/net10.0/win-x64/publish/