Skip to content

Commit

Permalink
Create manual-push-a-pod.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
HannahShiSFB committed Nov 16, 2024
1 parent 5f768c6 commit a583a74
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/manual-push-a-pod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# This is a basic workflow that is manually triggered

name: Manual push a pod

# Controls when the action will run. Workflow runs when manually triggered using the UI
# or API.
on:
workflow_dispatch:
inputs:
tag:
description: 'Release tag'
default: ''
required: true
type: string
pod:
description: 'Pod name without .podspec'
default: 'gRPC'
required: true
type: string
env:
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}
TAG: ${{ inputs.tag }}

jobs:
release-cocoapod:
runs-on: macos-12
steps:
- name: Repo checkout
uses: actions/checkout@v3
with:
ref: refs/tags/${{ inputs.tag }}

- name: Prepare environment
run: scripts/prepare_env.sh

- name: Pod release
run: scripts/release_cocoapod.sh ${{ inputs.pod }}.podspec

- name: Wait for pod avaialble
run: |
version=${TAG#v}
timeout 1h scripts/wait_for_pod_release.sh ${{ inputs.pod }} $version

0 comments on commit a583a74

Please sign in to comment.