Prepare Firebase 12.8 bindings (#185) #3
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
| name: Publish (GitHub Packages) | |
| on: | |
| push: | |
| tags: | |
| - "v*" | |
| workflow_dispatch: | |
| inputs: | |
| names: | |
| description: "Cake --names (comma-separated)" | |
| required: false | |
| default: "Google.SignIn" | |
| permissions: | |
| contents: read | |
| packages: write | |
| jobs: | |
| publish: | |
| runs-on: macos-15 | |
| env: | |
| CAKE_NAMES: ${{ inputs.names || 'Google.SignIn' }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Toolchain versions | |
| run: | | |
| xcodebuild -version | |
| swift --version | |
| xcode-select -p | |
| - name: Setup .NET SDK | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| global-json-file: global.json | |
| - name: Configure GitHub Packages NuGet source (this repo owner) | |
| run: | | |
| dotnet nuget remove source "github-owner" >/dev/null 2>&1 || true | |
| dotnet nuget add source "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" \ | |
| --name "github-owner" \ | |
| --username "${{ github.actor }}" \ | |
| --password "${{ secrets.GITHUB_TOKEN }}" \ | |
| --store-password-in-clear-text | |
| - name: Restore .NET workloads | |
| run: dotnet workload restore Xamarin.Google.sln | |
| - name: Install CocoaPods | |
| run: | | |
| if ! command -v pod >/dev/null 2>&1; then | |
| sudo gem install cocoapods | |
| fi | |
| pod --version | |
| - name: Restore tools | |
| run: dotnet tool restore | |
| - name: Build + pack | |
| run: dotnet tool run dotnet-cake -- --target=nuget --names="${CAKE_NAMES}" | |
| - name: Push packages | |
| run: | | |
| dotnet nuget push "output/*.nupkg" \ | |
| --source "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" \ | |
| --api-key "${{ secrets.GITHUB_TOKEN }}" \ | |
| --skip-duplicate |