This repository was archived by the owner on Jan 12, 2026. It is now read-only.
Added path parameter to inputs and text run #34
Workflow file for this run
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
| # this is based on https://github.com/irongut/MauiBeach/blob/master/.github/workflows/ci-build.yml | |
| # and https://raw.githubusercontent.com/the49ltd/The49.Maui.BottomSheet/main/.github/workflows | |
| # this might be useful, too: | |
| # https://github.com/dotnet/maui-samples/blob/main/8.0/Apps/WeatherTwentyOne/devops/GitHubActions/ | |
| name: NuGet push | |
| on: | |
| push: | |
| tags: | |
| - "*" | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| env: | |
| DOTNET_NOLOGO: true # Disable the .NET logo | |
| DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true # Disable the .NET first time experience | |
| DOTNET_CLI_TELEMETRY_OPTOUT: true # Disable sending .NET CLI telemetry | |
| jobs: | |
| # Check if it even builds | |
| build-and-publish-nuget-packages: | |
| runs-on: macos-15 | |
| name: Build and publish NuGet packages | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| # - name: Select Xcode 16.1 | |
| # run: sudo xcode-select -s /Applications/Xcode_16.1.2.app | |
| - name: Setup .NET according to global.json | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| global-json-file: global.json | |
| - name: Install MAUI Workload | |
| run: dotnet workload install maui | |
| - name: Create staging folder | |
| run: mkdir -p staging | |
| - name: Build packages | |
| run: | | |
| dotnet pack -o staging -c Release src/Rive.Android/Rive.Android.csproj /p:Version="${{ github.ref_name }}" | |
| dotnet pack -o staging -c Release src/Rive.iOS/Rive.iOS.csproj /p:Version="${{ github.ref_name }}" | |
| dotnet pack -o staging -c Release src/Rive.Maui/Rive.Maui.csproj /p:Version="${{ github.ref_name }}" | |
| - name: Publish to NuGet | |
| run: dotnet nuget push "staging/*.nupkg" --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }} --skip-duplicate |