Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(ci): fix workflows #402

Merged
merged 4 commits into from
Oct 3, 2023
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/workflows/deploy-cocoapods.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ jobs:
build:
name: Deploy to Cocoapods
runs-on: macOS-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- name: Checkout source branch
uses: actions/checkout@v4
Expand Down
16 changes: 10 additions & 6 deletions .github/workflows/deploy-private-pod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,22 @@ jobs:
runs-on: macOS-latest
if: (startsWith(github.event.pull_request.head.ref, 'release/') || startsWith(github.event.pull_request.head.ref, 'hotfix-release/'))
steps:
- name: Checkout
- name: 'Checkout'
uses: actions/checkout@v4
with:
ref: '${{ github.event.pull_request.head.ref }}'

- name: Install Cocoapods
- name: 'Install Cocoapods'
run: gem install cocoapods

- name: 'Convert podspec to podspec.json'
run: |
pod ipc spec Rudder.podspec > Rudder.podspec.json

- name: Add Private Spec Repo to CocoaPods installation
- name: 'Add Private Spec Repo to CocoaPods installation'
run: |
pod repo add Rudder https://${{secrets.PAT_USERNAME}}:${{secrets.PAT}}@github.com/rudderlabs/Specs.git
pod repo add rudderlabs https://${{secrets.PAT_USERNAME}}:${{secrets.PAT}}@github.com/rudderlabs/Specs.git

- name: Add Podspec to repo
- name: 'Add Podspec to repo'
run: |
pod repo push Rudder Rudder.podspec
pod repo push rudderlabs Rudder.podspec.json
16 changes: 10 additions & 6 deletions .github/workflows/draft-new-beta-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,18 +82,22 @@ jobs:
run: |
git push

- name: Checkout
- name: 'Checkout'
uses: actions/checkout@v4
with:
ref: '${{ steps.create-release.outputs.branch_name }}'

- name: Install Cocoapods
- name: 'Install Cocoapods'
run: gem install cocoapods

- name: Add Private Spec Repo to CocoaPods installation
- name: 'Convert podspec to podspec.json'
run: |
pod repo add Rudder https://${{secrets.PAT_USERNAME}}:${{secrets.PAT}}@github.com/rudderlabs/Specs.git
pod ipc spec Rudder.podspec > Rudder.podspec.json

- name: Add Podspec to repo
- name: 'Add Private Spec Repo to CocoaPods installation'
run: |
pod repo push Rudder Rudder.podspec
pod repo add rudderlabs https://${{secrets.PAT_USERNAME}}:${{secrets.PAT}}@github.com/rudderlabs/Specs.git

- name: 'Add Podspec to repo'
run: |
pod repo push rudderlabs Rudder.podspec.json
1 change: 0 additions & 1 deletion .github/workflows/slack-notify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ jobs:
deploy-tag:
name: Notify Slack
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- name: Send message to Slack channel
id: slack
Expand Down
2 changes: 1 addition & 1 deletion Rudder.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Pod::Spec.new do |s|

s.homepage = "https://github.com/rudderlabs/rudder-sdk-ios"
s.license = { :type => "Apache", :file => "LICENSE" }
s.author = { "RudderStack" => "arnab@rudderlabs.com" }
s.author = { "RudderStack" => "sdk-accounts@rudderstack.com" }
pallabmaiti marked this conversation as resolved.
Show resolved Hide resolved
s.source = { :git => "https://github.com/rudderlabs/rudder-sdk-ios.git", :tag => "v#{s.version}" }

s.ios.deployment_target = '12.0'
Expand Down
Loading