Cocoapod dev release #626
This file contains 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: Cocoapod dev release | |
on: | |
schedule: | |
- cron: '0 0,12 * * *' # run at every 0 and 12th hours of day | |
repository_dispatch: | |
types: [cocoapod-release-dev] | |
concurrency: | |
group: post-submit-dev-workflow | |
cancel-in-progress: true | |
env: | |
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }} | |
jobs: | |
update-dev-release-tag: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v2 | |
- name: Collect version | |
run: | | |
echo "VERSION=$(cat VERSION)" >> $GITHUB_ENV | |
- name: Update tags | |
uses: rickstaa/action-create-tag@v1 | |
with: | |
tag: "v${{ env.VERSION }}" | |
message: "gRPC-iOS Dev Release for ${{ env.VERSION }}" | |
force_push_tag: true | |
release-cocoapod-gRPC-RxLibrary: | |
runs-on: macos-latest | |
steps: | |
- name: Repo checkout | |
uses: actions/checkout@v3 | |
with: | |
ref: main | |
- name: Prepare environment | |
run: scripts/prepare_env.sh | |
- name: Delete existing | |
run: | | |
version=$(cat VERSION) | |
if ! [[ $version == *-dev ]]; then exit 1; fi | |
genv --default-signal=PIPE yes | scripts/delete_pod_version.sh gRPC-RxLibrary $version | |
- name: Pod release | |
run: scripts/release_cocoapod.sh native/gRPC-RxLibrary.podspec | |
- name: Wait for pod avaialble | |
run: | | |
version=$(cat VERSION) | |
timeout 1h scripts/wait_for_pod_release.sh gRPC-RxLibrary $version | |
release-cocoapod-gRPC: | |
runs-on: macos-latest | |
needs: release-cocoapod-gRPC-RxLibrary | |
steps: | |
- name: Repo checkout | |
uses: actions/checkout@v3 | |
with: | |
ref: main | |
- name: Prepare environment | |
run: scripts/prepare_env.sh | |
- name: Delete existing | |
run: | | |
version=$(cat VERSION) | |
if ! [[ $version == *-dev ]]; then exit 1; fi | |
genv --default-signal=PIPE yes | scripts/delete_pod_version.sh gRPC $version | |
- name: Pod release | |
run: scripts/release_cocoapod.sh native/gRPC.podspec | |
- name: Wait for pod avaialble | |
run: | | |
version=$(cat VERSION) | |
timeout 1h scripts/wait_for_pod_release.sh gRPC $version | |
release-cocoapod-gRPC-ProtoRPC: | |
runs-on: macos-latest | |
needs: [release-cocoapod-gRPC-RxLibrary, release-cocoapod-gRPC] | |
steps: | |
- name: Repo checkout | |
uses: actions/checkout@v3 | |
with: | |
ref: main | |
- name: Prepare environment | |
run: scripts/prepare_env.sh | |
- name: Delete existing | |
run: | | |
version=$(cat VERSION) | |
if ! [[ $version == *-dev ]]; then exit 1; fi | |
genv --default-signal=PIPE yes | scripts/delete_pod_version.sh gRPC-ProtoRPC $version | |
- name: Pod release | |
run: scripts/release_cocoapod.sh native/gRPC-ProtoRPC.podspec | |
- name: Wait for pod avaialble | |
run: | | |
version=$(cat VERSION) | |
timeout 1h scripts/wait_for_pod_release.sh gRPC-ProtoRPC $version |