-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[INJIMOB-890] [INJIMOB-891] Support for packaging Kotlin and Swift Ar…
…tifacts (#109) * delete CODE_OF_CONDUCT.md Signed-off-by: Swati Goel <meet2swati@gmail.com> * update CONTRIBUTING.md Signed-off-by: Swati Goel <meet2swati@gmail.com> * feat (#891): iOS File Manipulation Signed-off-by: Ayushi Dey <ayushirakshitdey@gmail.com> * feat (#891): iOS File Manipulation Signed-off-by: Ayushi Dey <ayushirakshitdey@gmail.com> * feat (#890, #891): Add. iOS and Android Artefacts and Git Workflows Signed-off-by: Ayushi Dey <ayushirakshitdey@gmail.com> * feat (#890): Added Android Example App Signed-off-by: Ayushi Dey <ayushirakshitdey@gmail.com> * feat (#891): Added iOS Example App Signed-off-by: Ayushi Dey <ayushirakshitdey@gmail.com> * [INJIMOB-890]: rename artefact to artifact Signed-off-by: Swati Goel <meet2swati@gmail.com> * feat(#890): publishing android artefacts to maven central Signed-off-by: Ayushi Dey <ayushirakshitdey@gmail.com> * chore(#893): add maven publish tuvali git workflow Signed-off-by: Ayushi Dey <ayushirakshitdey@gmail.com> * [INJIMOB-890]: feat. maven publish workflow for android builds Signed-off-by: Ayushi Dey <ayushirakshitdey@gmail.com> * [INJIMOB-890]: feat. maven publishing workflow file edit Signed-off-by: Ayushi Dey <ayushirakshitdey@gmail.com> * [INJIMOB-890]: feat. maven publishing workflow file edit Signed-off-by: Ayushi Dey <ayushirakshitdey@gmail.com> * [INJIMOB-890]: feat. maven publishing workflow file edit #3 Signed-off-by: Ayushi Dey <ayushirakshitdey@gmail.com> * [INJIMOB-890]: feat. maven publishing workflow file edit #4 Signed-off-by: Ayushi Dey <ayushirakshitdey@gmail.com> * [INJIMOB-890]: feat. maven publishing workflow file edit #5 Signed-off-by: Ayushi Dey <ayushirakshitdey@gmail.com> * [INJIMOB-890]: feat. maven publishing workflow file edit - added npm and reacr=t-native dependencies #6 Signed-off-by: Ayushi Dey <ayushirakshitdey@gmail.com> * [INJIMOB-890]: feat. maven publishing workflow file edit - changed pom file location #7 Signed-off-by: Ayushi Dey <ayushirakshitdey@gmail.com> * [INJIMOB-890]: feat. maven publishing workflow file edit - changed pom location and removed commit plugin Signed-off-by: Ayushi Dey <ayushirakshitdey@gmail.com> * [INJIMOB-890]: feat. maven publishing workflow file edit - manual trigger for branches Signed-off-by: Ayushi Dey <ayushirakshitdey@gmail.com> * [INJIMOB-890]: edited android artifact workflow Signed-off-by: Ayushi Dey <ayushirakshitdey@gmail.com> * [INJIMOB-890]: edited android artifact workflow and publish artifact gradle Signed-off-by: Ayushi Dey <ayushirakshitdey@gmail.com> * [INJIMOB-890]: delete kotlin artifact package Signed-off-by: Swati Goel <meet2swati@gmail.com> --------- Signed-off-by: Swati Goel <meet2swati@gmail.com> Signed-off-by: Ayushi Dey <ayushirakshitdey@gmail.com> Co-authored-by: Ayushi Dey <ayushidey@Ayushis-Laptop.local> Co-authored-by: Ayushi Dey <ayushirakshitdey@gmail.com>
- Loading branch information
1 parent
2831202
commit d5fb4e6
Showing
144 changed files
with
75,449 additions
and
8,772 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,30 @@ | ||
name: Android Artifact Build | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
message: | ||
description: 'Message for manually triggering' | ||
required: false | ||
default: 'Triggered for Updates' | ||
type: string | ||
push: | ||
branches: | ||
- release* | ||
- master | ||
- develop* | ||
|
||
jobs: | ||
maven-publish: | ||
uses: mosip/kattu/.github/workflows/maven-publish-android.yml@master | ||
with: | ||
SERVICE_LOCATION: '.' | ||
ANDROID_LOCATION: 'android' | ||
BUILD_ARTIFACT: tuvali | ||
secrets: | ||
OSSRH_USER: ${{ secrets.OSSRH_USER }} | ||
OSSRH_URL: ${{secrets.OSSRH_URL }} | ||
OSSRH_SECRET: ${{ secrets.OSSRH_SECRET }} | ||
OSSRH_TOKEN: ${{ secrets.OSSRH_TOKEN }} | ||
GPG_SECRET: ${{ secrets.GPG_SECRET }} | ||
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_INJI_TEAM }} |
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,65 @@ | ||
name: iOS Artifact Build | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: macos-latest | ||
permissions: | ||
contents: write # Grants permission to push code and manage releases | ||
pull-requests: write # Grants permission to write pull requests | ||
|
||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '16' | ||
|
||
- name: Create Library Folder and Create Swift Library | ||
run: | | ||
cd ./artifacts/swift-artifact/ | ||
rm -rf ios-tuvali-library | ||
mkdir ios-tuvali-library | ||
cd ios-tuvali-library | ||
swift package init --type library | ||
rm -rf /ios-tuvali-library | ||
- name: Edit Package.swift | ||
run: | | ||
cp ./artifacts/swift-artifact/Package.swift ./artifacts/swift-artifact/ios-tuvali-library/Package.swift | ||
- name: Build Swift Package | ||
run: | | ||
cd ./artifacts/swift-artifact/ios-tuvali-library | ||
swift package clean | ||
swift package update | ||
brew install zlib | ||
swift build -c debug -Xlinker -L/usr/local/lib | ||
- name: Move required files | ||
run: | | ||
cp -R ./ios/Wallet ./artifacts/swift-artifact/ios-tuvali-library/Sources/ios-tuvali-library | ||
cp -R ./ios/ble ./artifacts/swift-artifact/ios-tuvali-library/Sources/ios-tuvali-library | ||
cp -R ./ios/crypto ./artifacts/swift-artifact/ios-tuvali-library/Sources/ios-tuvali-library | ||
cp -R ./ios/common ./artifacts/swift-artifact/ios-tuvali-library/Sources/ios-tuvali-library | ||
- name: Configure Git | ||
run: | | ||
git config --local user.email "action@github.com" | ||
git config --local user.name "GitHub Action" | ||
- name: Commit Artifacts | ||
run: | | ||
git add . | ||
git commit --allow-empty -m "chore(#891): changes in script" | ||
- name: Push Changes to Specific Branch | ||
run: | | ||
git pull origin --rebase | ||
git push | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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
Oops, something went wrong.