Skip to content

MOB-936 Update Continuous and deployment Workflow #13

MOB-936 Update Continuous and deployment Workflow

MOB-936 Update Continuous and deployment Workflow #13

Workflow file for this run

name: Deployment
on:
workflow_dispatch:
jobs:
deploy:
runs-on: macos-14
name: Deploy to Cocoapods Trunk
steps:
- uses: actions/checkout@v4
- name: Select Xcode Version
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '15.3.0'
- name: Setup environment
run: |
bundle install
- name: Build and Run tests
run: |
xcodebuild clean build test -scheme PaystackSDK-Package -sdk iphonesimulator17.4 -destination "OS=17.4,name=iPhone 15 Pro" -enableCodeCoverage YES CODE_SIGNING_REQUIRED=NO
- name: setup-cocoapods
uses: maxim-lobanov/setup-cocoapods@v1
with:
version: 1.15.2
- name: Get version information
run: |
version=$(/usr/libexec/PlistBuddy -c "Print Version" ./Sources/PaystackSDK/Versioning/versions.plist)
echo "version=${version}" >> $GITHUB_ENV
body=$(/usr/libexec/PlistBuddy -c "Print Description" ./Sources/PaystackSDK/Versioning/versions.plist)
echo "body=${body}" >> $GITHUB_ENV
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ env.version }}
release_name: ${{ env.version }}
body: ${{ env.body }}
Publish Cocoapods:
runs-on: ubuntu-latest
needs: deploy
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:

Check failure on line 57 in .github/workflows/deploy.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/deploy.yml

Invalid workflow file

You have an error in your yaml syntax on line 57
ruby-version: '3.2.2'
- name: Deploy to Cocoapods
run: |
gem install cocoapods
set -eo pipefail
pod trunk push PaystackCore.podspec --allow-warnings
pod trunk push PaystackUI.podspec --allow-warnings
env:
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}