Skip to content

Commit

Permalink
Update a8c-ci-toolkit to workaround CocoaPods issue
Browse files Browse the repository at this point in the history
  • Loading branch information
mokagio committed Jan 22, 2024
1 parent 771ac86 commit f22f2bf
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 18 deletions.
21 changes: 6 additions & 15 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Nodes with values to reuse in the pipeline.
common_params:
plugins: &common_plugins
- automattic/a8c-ci-toolkit#2.13.0
- automattic/a8c-ci-toolkit#3.0.1
env: &common_env
IMAGE_ID: xcode-15.0.1

Expand All @@ -12,11 +12,10 @@ steps:
########################
- label: "🔬 Validate Swift Package"
key: "test"
command: |
validate_swift_package
command: validate_swift_package
env: *common_env
plugins: *common_plugins
artifact_paths:
artifact_paths:
- .build/logs/*.log
- .build/derived-data/Logs/**/*.xcactivitylog

Expand All @@ -25,13 +24,7 @@ steps:
#################
- label: "🔬 Validate Podspec"
key: "validate"
command: |
# validate_podspec
echo '+++ ⚠️ validate_podspec was bypassed ⚠️'
# post a message in the logs
cat .buildkite/validate_podspec_annotation.md
# and also as an annotation
cat .buildkite/validate_podspec_annotation.md | buildkite-agent annotate --style 'warning'
command: validate_podspec --patch-cocoapods
env: *common_env
plugins: *common_plugins
artifact_paths: ".build/logs/*.log"
Expand All @@ -41,8 +34,7 @@ steps:
#################
- label: "🧹 Lint"
key: "lint"
command: |
lint_pod
command: lint_pod
env: *common_env
plugins: *common_plugins

Expand All @@ -51,8 +43,7 @@ steps:
#################
- label: "⬆️ Publish Podspec"
key: "publish"
command: |
.buildkite/publish-pod.sh
command: .buildkite/publish-pod.sh
env: *common_env
plugins: *common_plugins
depends_on:
Expand Down
6 changes: 3 additions & 3 deletions .buildkite/publish-pod.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ echo "--- :rubygems: Setting up Gems"
install_gems

echo "--- :cocoapods: Publishing Pod to CocoaPods CDN"
publish_pod $PODSPEC_PATH
publish_pod --patch-cocoapods $PODSPEC_PATH

echo "--- :cocoapods: Publishing Pod to WP Specs Repo"
publish_private_pod $PODSPEC_PATH $SPECS_REPO "$SPEC_REPO_PUBLIC_DEPLOY_KEY"
publish_private_pod --patch-cocoapods $PODSPEC_PATH $SPECS_REPO "$SPEC_REPO_PUBLIC_DEPLOY_KEY"

echo "--- :slack: Notifying Slack"
slack_notify_pod_published $PODSPEC_PATH $SLACK_WEBHOOK
slack_notify_pod_published $PODSPEC_PATH "$SLACK_WEBHOOK"

0 comments on commit f22f2bf

Please sign in to comment.