-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add "release action" to AEPCore repo; bump up version to 3.0.0-beta3 (#…
…500) * Add release action to AEPCore repo; bump up version to 3.0.0-beta3 * update all podspec files: always depends on latests (to-be-released) AEPCore/AEPRulesEngine/AEPService
- Loading branch information
1 parent
b8d8906
commit 1fe977a
Showing
17 changed files
with
386 additions
and
20 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
name: Release | ||
|
||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
tag: | ||
description: 'tag/version' | ||
required: true | ||
default: '1.0.0' | ||
|
||
jobs: | ||
release_rules_engine: | ||
runs-on: macos-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
ref: main | ||
|
||
- name: Install jq | ||
run: brew install jq | ||
|
||
- name: Check version in Podspec | ||
run: | | ||
set -eo pipefail | ||
echo Target version: ${{ github.event.inputs.tag }} | ||
make check-version VERSION=${{ github.event.inputs.tag }} | ||
# "release-drafter" action docs -> https://github.com/marketplace/actions/release-drafter | ||
- name: SPM integration test | ||
run: | | ||
set -eo pipefail | ||
echo SPM integration test starts: | ||
make test-SPM-integration | ||
- name: podspec file verification | ||
run: | | ||
set -eo pipefail | ||
echo podspec file verification starts: | ||
make test-podspec | ||
- uses: release-drafter/release-drafter@v5 | ||
with: | ||
name: v${{ github.event.inputs.tag }} | ||
tag: ${{ github.event.inputs.tag }} | ||
version: ${{ github.event.inputs.tag }} | ||
publish: true | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Publish Pods - AEPService | ||
run: | | ||
set -eo pipefail | ||
gem install cocoapods | ||
pod lib lint AEPServices.podspec --allow-warnings --swift-version=5.1 | ||
pod trunk push AEPServices.podspec --allow-warnings | ||
env: | ||
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }} | ||
|
||
- name: Sleep for 3 seconds | ||
uses: jakejarvis/wait-action@master | ||
with: | ||
time: '3s' | ||
|
||
- name: Publish Pods - AEPCore | ||
run: | | ||
set -eo pipefail | ||
gem install cocoapods | ||
pod lib lint AEPCore.podspec --allow-warnings --swift-version=5.1 | ||
pod trunk push AEPCore.podspec --allow-warnings | ||
env: | ||
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }} | ||
|
||
- name: Sleep for 3 seconds | ||
uses: jakejarvis/wait-action@master | ||
with: | ||
time: '3s' | ||
|
||
- name: Publish Pods - AEPIdentity | ||
run: | | ||
set -eo pipefail | ||
gem install cocoapods | ||
pod lib lint AEPIdentity.podspec --allow-warnings --swift-version=5.1 | ||
pod trunk push AEPIdentity.podspec --allow-warnings | ||
env: | ||
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }} | ||
|
||
- name: Publish Pods - AEPLifecycle | ||
run: | | ||
set -eo pipefail | ||
gem install cocoapods | ||
pod lib lint AEPLifecycle.podspec --allow-warnings --swift-version=5.1 | ||
pod trunk push AEPLifecycle.podspec --allow-warnings | ||
env: | ||
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }} | ||
|
||
- name: Publish Pods - AEPSignal | ||
run: | | ||
set -eo pipefail | ||
gem install cocoapods | ||
pod lib lint AEPSignal.podspec --allow-warnings --swift-version=5.1 | ||
pod trunk push AEPSignal.podspec --allow-warnings | ||
env: | ||
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }} | ||
|
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
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
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.