-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: ios and android release workflows (#17)
* feat: ios and android release workflows * Update .github/workflows/android_release.yaml Co-authored-by: Vansh Gandhi <me@van.sh> --------- Co-authored-by: Vansh Gandhi <me@van.sh>
- Loading branch information
Showing
4 changed files
with
79 additions
and
3 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,38 @@ | ||
name: Update Android Version | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
android_release_version: | ||
description: 'SmileID Android Version' | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
update-android: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v3 | ||
- name: Create Release Branch | ||
run: | | ||
git checkout -b "android-${{ github.event.inputs.android_release_version }}" | ||
git push origin "android-${{ github.event.inputs.android_release_version }}" | ||
- name: Read build.gradle | ||
id: read-file | ||
run: | | ||
sed -i "s/\(SmileId_androidVersion=\).*/\1\"$(echo "${{ github.event.inputs.android_release_version }}" | cut -c 2-)\"/" android/gradle.properties | ||
- name: Commit and Push Changes | ||
run: | | ||
git config user.name "GitHub Actions" | ||
git config user.email "actions@github.com" | ||
git add android/gradle.properties | ||
git commit -m "Update Android SDK version to ${{ github.event.inputs.android_release_version }}" | ||
git push --set-upstream origin "android-${{ github.event.inputs.android_release_version }}" | ||
- name: Create Pull Request | ||
run: | | ||
gh pr create --title "Merge release "android-${{ github.event.inputs.android_release_version }}" into main" --body "This is an automated pull request to update the version." --base main --head "android-${{ github.event.inputs.android_release_version }}" | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Update iOS Version | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
ios_release_version: | ||
description: 'SmileID iOS Version' | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
update-ios: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v3 | ||
- name: Create Release Branch | ||
run: | | ||
git checkout -b "ios-${{ github.event.inputs.ios_release_version }}" | ||
git push origin "ios-${{ github.event.inputs.ios_release_version }}" | ||
- name: Read build.gradle | ||
id: read-file | ||
run: | | ||
sed -i "s/s.dependency\s*'SmileID'\s*,\s*'[^']*'/s.dependency 'SmileID', '$(echo "${{ github.event.inputs.ios_release_version }}" | cut -c 2-)'/g" react-native-smile-id.podspec | ||
- name: Commit and Push Changes | ||
run: | | ||
git config user.name "GitHub Actions" | ||
git config user.email "actions@github.com" | ||
git add react-native-smile-id.podspec | ||
git commit -m "Update iOS SDK version to ${{ github.event.inputs.ios_release_version }}" | ||
git push --set-upstream origin "ios-${{ github.event.inputs.ios_release_version }}" | ||
- name: Create Pull Request | ||
run: | | ||
gh pr create --title "Merge release "ios-${{ github.event.inputs.ios_release_version }}" into main" --body "This is an automated pull request to update the version." --base main --head "ios-${{ github.event.inputs.ios_release_version }}" | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_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