-
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 #124 from AppsFlyerSDK/releases/6.x.x/6.10.x/6.10.…
…1-rc1 Releases/6.x.x/6.10.x/6.10.1 rc1
- Loading branch information
Showing
18 changed files
with
220 additions
and
108 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/bash | ||
|
||
appsflyerLibVersion=$1 | ||
|
||
sed -i '' "s/version_appsflyerLib = \'.*\'/version_appsflyerLib = \'$appsflyerLibVersion\'/g" segment-appsflyer-ios.podspec | ||
|
||
sed -r -i '' "s/(.*AppsFlyerLib.*)([0-9]+\.[0-9]+\.[0-9]+)(.*)/\1$appsflyerLibVersion\3/g" Package.swift | ||
|
||
sed -r -i '' "s/(.*pod \'segment-appsflyer-ios\')(.*\'[0-9]+\.[0-9]+\.[0-9]+\')/\1,:podspec => \'\.\.\/\.\.\/segment-appsflyer-ios.podspec\'/g" examples/SwiftPodsSample/Podfile | ||
sed -r -i '' "s/(.*pod \'segment-appsflyer-ios\')(.*\'[0-9]+\.[0-9]+\.[0-9]+\')/\1,:podspec => \'\.\.\/\.\.\/segment-appsflyer-ios.podspec\'/g" examples/ObjcPodsSample/Podfile | ||
|
||
sed -r -i '' "s/(## This is a Segment wrapper for AppsFlyer SDK that is built with iOS SDK v)(.*)/\1$appsflyerLibVersion./g" README.md | ||
sed -r -i '' "s/(.*pod \'segment-appsflyer-ios.*)([0-9]+\.[0-9]+\.[0-9]+)(.*)/\1$appsflyerLibVersion\3/g" README.md | ||
|
||
touch "releasenotes.$appsflyerLibVersion" |
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/bash | ||
|
||
releaseVersion=$1 | ||
|
||
sed -r -i '' "s/version_plugin = \'[0-9]+\.[0-9]+\.[0-9]+\'/version_plugin = \'$releaseVersion\'/g" segment-appsflyer-ios.podspec | ||
|
||
sed -r -i '' "s/(.*pod \'segment-appsflyer-ios\')(.*)/\1,\'$releaseVersion\'/g" examples/SwiftPodsSample/Podfile | ||
sed -r -i '' "s/(.*pod \'segment-appsflyer-ios\')(.*)/\1,\'$releaseVersion\'/g" examples/ObjcPodsSample/Podfile | ||
|
||
sed -i '' 's/^/* /' "releasenotes.$releaseVersion" | ||
NEW_VERSION_RELEASE_NOTES=$(cat "releasenotes.$releaseVersion") | ||
NEW_VERSION_SECTION="### $releaseVersion\n$NEW_VERSION_RELEASE_NOTES\n\n" | ||
echo -e "$NEW_VERSION_SECTION$(cat RELEASENOTES.md)" > RELEASENOTES.md | ||
|
||
rm -r "releasenotes.$releaseVersion" |
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: pre-release | ||
|
||
on: | ||
workflow_call: | ||
|
||
jobs: | ||
Change-HardCoded-Version: | ||
name: Pre Release | ||
runs-on: macos-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Determine release tag and release branch | ||
run: | | ||
TAG=$(echo "${{github.ref_name}}" | grep -Eo '[0-9]+.[0-9]+.[0-9]+') | ||
echo "PLUGIN_VERSION=$TAG" >> $GITHUB_ENV | ||
- name: run script | ||
run: bash .github/bash_scripts/pre_release.sh ${{env.PLUGIN_VERSION}} | ||
- 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: '.' | ||
|
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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Prepare plugin for production | ||
|
||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
branches: | ||
- 'master' | ||
# - 'dev/add-release-workflow' | ||
|
||
jobs: | ||
Prepare-Plugin-For-Production: | ||
if: startsWith(github.head_ref, 'releases/') | ||
name: Prepare for production after testing the plugin | ||
runs-on: macos-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: PR branch check | ||
uses: mdecoleman/[email protected] | ||
id: vars | ||
with: | ||
repo-token: ${{ secrets.CI_GITHUB_TOKEN }} | ||
- name: Determine release tag and release branch | ||
run: | | ||
TAG=$(echo "${{ steps.vars.outputs.branch }}" | grep -Eo '[0-9]+.[0-9]+.[0-9]+') | ||
echo "from branch: ${{github.head_ref}}" | ||
echo "PLUGIN_VERSION=$TAG" >> $GITHUB_ENV | ||
- name: run script | ||
run: bash .github/bash_scripts/release.sh ${{env.PLUGIN_VERSION}} | ||
- name: Commit and Push | ||
run : | | ||
git add . | ||
git commit -m"Commited from github action - prepaing the repo for production." | ||
git push origin HEAD:${{ steps.vars.outputs.branch }} --force |
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
|
||
name: Release plugin to QA | ||
|
||
on: | ||
push: | ||
branches: | ||
- releases/[0-9]+.x.x/[0-9]+.[0-9]+.x/[0-9]+.[0-9]+.[0-9]+-rc[0-9]+ | ||
|
||
jobs: | ||
Check-If-ReleaseNotes-Pushed: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
answer: ${{ steps.filter.outputs.releasenotesfile }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: dorny/paths-filter@v2 | ||
id: filter | ||
with: | ||
filters: | | ||
releasenotesfile: | ||
- 'releasenotes.**' | ||
Run-Unit-Tests: | ||
needs: Check-If-ReleaseNotes-Pushed | ||
if: needs.Check-If-ReleaseNotes-Pushed.outputs.answer == 'false' | ||
uses: ./.github/workflows/unit-tests-workflow.yml | ||
|
||
Deploy-Locally-To-QA: | ||
needs: [Run-Unit-Tests,Check-If-ReleaseNotes-Pushed] | ||
if: needs.Check-If-ReleaseNotes-Pushed.outputs.answer == 'false' | ||
uses: ./.github/workflows/prepare-for-QA-release.yml |
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 |
---|---|---|
@@ -0,0 +1,63 @@ | ||
name: Release plugin to production | ||
|
||
on: | ||
pull_request: | ||
types: | ||
- closed | ||
branches: | ||
- 'master' | ||
# - 'dev/add-release-workflow' | ||
|
||
jobs: | ||
Deploy-To-Production: | ||
if: github.event.pull_request.merged == true && startsWith(github.head_ref, 'releases/') | ||
runs-on: macos-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: PR branch check | ||
uses: mdecoleman/[email protected] | ||
id: vars | ||
with: | ||
repo-token: ${{ secrets.CI_GITHUB_TOKEN }} | ||
- name: Determine release tag and release branch | ||
run: | | ||
TAG=$(echo "${{ steps.vars.outputs.branch }}" | grep -Eo '[0-9]+.[0-9]+.[0-9]+') | ||
echo "PLUGIN_VERSION=$TAG" >> $GITHUB_ENV | ||
echo "RELEASE_BRANCH_NAME=${{ steps.vars.outputs.branch }}" >> $GITHUB_ENV | ||
echo "push new release >> $TAG" | ||
echo "from branch: ${{github.head_ref}}" | ||
- name: Create release and tag | ||
env: | ||
TAG: ${{env.PLUGIN_VERSION}} | ||
uses: "actions/github-script@v5" | ||
with: | ||
script: | | ||
try { | ||
await github.rest.repos.createRelease({ | ||
draft: false, | ||
generate_release_notes: false, | ||
name: process.env.TAG, | ||
owner: context.repo.owner, | ||
prerelease: false, | ||
repo: context.repo.repo, | ||
tag_name: process.env.TAG | ||
}); | ||
} catch (error) { | ||
core.setFailed(error.message); | ||
} | ||
- name: Install Cocoapods | ||
run: gem install cocoapods | ||
- name: Push to COCOAPODS | ||
uses: michaelhenry/[email protected] | ||
env: | ||
COCOAPODS_TRUNK_TOKEN: ${{ secrets.CI_COCOAPODS_TOKEN }} | ||
- name: Notify with SLack | ||
uses: slackapi/[email protected] | ||
with: | ||
payload: | | ||
{ | ||
"appsflyer_version": "${{env.PLUGIN_VERSION}}" | ||
} | ||
env: | ||
SLACK_WEBHOOK_URL: ${{ secrets.CI_SLACK_WEBHOOK_URL }} |
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 was deleted.
Oops, something went wrong.
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
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
Oops, something went wrong.