Update CocoaPods for 1.0.3 (#345) #30
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: release | |
on: | |
push: | |
tags: | |
- "*" | |
workflow_dispatch: {} # support manual runs | |
env: | |
# Sets the Xcode version to use for the CI. | |
# Available Versions: https://github.com/actions/runner-images/blob/main/images/macos/macos-15-arm64-Readme.md#xcode | |
# Ref: https://www.jessesquires.com/blog/2020/01/06/selecting-an-xcode-version-on-github-ci/ | |
DEVELOPER_DIR: /Applications/Xcode_16.3.app/Contents/Developer | |
permissions: | |
contents: write | |
jobs: | |
release: | |
runs-on: macos-15 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: bufbuild/[email protected] | |
with: | |
github_token: ${{ github.token }} | |
- name: Build plugins | |
run: make buildplugins | |
- name: Zip artifacts | |
run: | | |
cd ./.tmp/bin | |
mkdir ./artifacts | |
tar -zcvf ./artifacts/protoc-gen-connect-swift.tar.gz ./protoc-gen-connect-swift | |
tar -zcvf ./artifacts/protoc-gen-connect-swift-mocks.tar.gz ./protoc-gen-connect-swift-mocks | |
cd ./artifacts | |
for file in $(find . -maxdepth 1 -type f | sed 's/^\.\///' | sort | uniq); do | |
shasum -a 256 "${file}" >> sha256.txt | |
done | |
- name: Publish release | |
uses: softprops/action-gh-release@v2 | |
with: | |
generate_release_notes: true | |
append_body: true | |
files: | | |
./.tmp/bin/artifacts/* | |
publish-podspecs: | |
runs-on: macos-15 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Publish podspecs to CocoaPods | |
env: | |
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }} | |
# Note that --synchronous is used since Mocks depends on the primary spec. | |
run: | | |
pod trunk push Connect-Swift.podspec --allow-warnings --synchronous | |
pod trunk push Connect-Swift-Mocks.podspec --allow-warnings --synchronous |