Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions .github/workflows/cocoapods-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,11 @@ name: Cocoapods publish

on:
workflow_dispatch:
push:
branches: [ main ]

jobs:
# Only runs on the version update commit
# We need the new podspec available to publish to CocoaPods
# Runs after the main publish workflow completes successfully
# Triggered explicitly by publish.yml via `gh workflow run` (only on real releases, not dry-runs)
publish-to-cocoapods:
if: "contains(github.event.head_commit.author.email, 'flubuild@microsoft.com')"
name: Publish to CocoaPods
runs-on: macos-latest

Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,12 @@ jobs:
run: |
git push origin HEAD:main --follow-tags --tags

- name: Trigger CocoaPods publish
if: ${{ !inputs.dry-run }}
run: gh workflow run cocoapods-publish.yml
env:
GH_TOKEN: ${{ steps.generate-token.outputs.token }}

- name: Dry-run summary
if: ${{ inputs.dry-run }}
run: |
Expand Down
Loading