Deploy #90
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: Deploy | |
| on: | |
| workflow_run: | |
| workflows: ["CI main"] | |
| types: | |
| - completed | |
| jobs: | |
| release: | |
| runs-on: macos-14 | |
| steps: | |
| - uses: maxim-lobanov/setup-xcode@v1 | |
| with: | |
| xcode-version: '15.2' | |
| - uses: actions/checkout@v3 | |
| with: | |
| clean: 'true' | |
| fetch-depth: 0 | |
| - name: Install GitVersion | |
| uses: gittools/actions/gitversion/setup@v0.9.7 | |
| with: | |
| versionSpec: '5.x' | |
| - name: Determine Version | |
| id: gitversion | |
| uses: gittools/actions/gitversion/execute@v0.9.7 | |
| with: | |
| useConfigFile: true | |
| configFilePath: ./.github/gitversion.yml | |
| - name: Prepare for release | |
| run: | | |
| set -eo pipefail | |
| export LIB_VERSION=${{ steps.gitversion.outputs.SemVer }} | |
| pod spec lint --allow-warnings --skip-import-validation | |
| pod trunk push --allow-warnings --skip-import-validation | |
| env: | |
| COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOA_KEY }} |