Bumping version #4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| on: | |
| push: | |
| branches: | |
| - build | |
| jobs: | |
| build: | |
| runs-on: macos-latest | |
| name: Update NuGet package | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v3 | |
| - name: Setup .NET 9 | |
| uses: actions/setup-dotnet@v3 | |
| with: | |
| dotnet-version: '9.0.x' | |
| source-url: https://nuget.pkg.github.com/snagr/index.json | |
| env: | |
| NUGET_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} | |
| - name: Restoring workload | |
| run: | | |
| cd Mopups/Mopups.Maui/ | |
| dotnet workload restore | |
| cd - | |
| - name: Build solution and generate NuGet package | |
| run: | | |
| dotnet build -c Release Mopups/Mopups.Maui/Mopups.csproj | |
| dotnet pack Mopups/Mopups.Maui/Mopups.csproj --no-build --output ./packages | |
| - name: Push generated package to GitHub registry | |
| run: dotnet nuget push ./packages/*.nupkg --skip-duplicate --no-symbols |