-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #141 from AppsFlyerSDK/dev/DELIVERY-63802/ci-modif…
…ication Dev/delivery 63802/ci modification
- Loading branch information
Showing
6 changed files
with
36 additions
and
18 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,23 +4,35 @@ on: | |
workflow_call: | ||
|
||
jobs: | ||
Change-HardCoded-Version: | ||
Change-HardCoded-Version-And-Then-Release: | ||
name: Pre Release | ||
runs-on: macos-latest | ||
runs-on: [ios, self-hosted] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Determine release tag and release branch | ||
run: | | ||
echo ${{github.ref_name}} | ||
TAG=$(echo "${{github.ref_name}}" | grep -Eo '[0-9]+.[0-9]+.[0-9]+') | ||
echo "PLUGIN_VERSION=$TAG" >> $GITHUB_ENV | ||
echo "PLUGIN_VERSION=$TAG" >> $GITHUB_ENV | ||
TAG_RC=$(echo "${{github.ref_name}}" | grep -Eo '[0-9]+.[0-9]+.[0-9]+-rc[0-9]+') | ||
echo "PLUGIN_VERSION_RC=$TAG_RC" >> $GITHUB_ENV | ||
- name: run script | ||
run: bash .github/bash_scripts/pre_release.sh ${{env.PLUGIN_VERSION}} | ||
run: bash .github/bash_scripts/pre_release.sh ${{env.PLUGIN_VERSION}} ${{env.PLUGIN_VERSION_RC}} | ||
- name: Commit changes | ||
uses: EndBug/add-and-commit@v9 | ||
with: | ||
author_name: Moris Gateno | ||
author_email: [email protected] | ||
message: 'Commited from github action - prepaing the repo for QA locally.' | ||
add: '.' | ||
add: '.' | ||
tag: "${{env.PLUGIN_VERSION_RC}} --force" | ||
tag_push: '--force' | ||
- name: Push to COCOAPODS | ||
run: | | ||
pod trunk me | ||
pod trunk push segment-appsflyer-ios-qa.podspec | ||
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,6 @@ on: | |
- opened | ||
branches: | ||
- 'master' | ||
# - 'dev/add-release-workflow' | ||
|
||
jobs: | ||
Prepare-Plugin-For-Production: | ||
|
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ on: | |
jobs: | ||
Deploy-To-Production: | ||
if: github.event.pull_request.merged == true && startsWith(github.head_ref, 'releases/') | ||
runs-on: macos-latest | ||
runs-on: [ios, self-hosted] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
@@ -49,9 +49,9 @@ jobs: | |
- name: Install Cocoapods | ||
run: gem install cocoapods | ||
- name: Push to COCOAPODS | ||
uses: michaelhenry/[email protected] | ||
env: | ||
COCOAPODS_TRUNK_TOKEN: ${{ secrets.CI_COCOAPODS_TOKEN }} | ||
run: | | ||
pod trunk me | ||
pod trunk push segment-appsflyer-ios.podspec | ||
- name: Notify with SLack | ||
uses: slackapi/[email protected] | ||
with: | ||
|