File tree 2 files changed +39
-0
lines changed
web3-build-logic/src/main/kotlin
2 files changed +39
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Publish to GH Packages
2
+
3
+ on :
4
+ pull_request :
5
+ branches :
6
+ - master
7
+ - develop
8
+
9
+ workflow_dispatch :
10
+
11
+ jobs :
12
+ build :
13
+ runs-on : macOS-latest
14
+
15
+ steps :
16
+ - uses : actions/checkout@v1
17
+ - name : Set up JDK 11
18
+ uses : actions/setup-java@v1
19
+ with :
20
+ java-version : 11
21
+ - name : Build library
22
+ run : ./gradlew build publishToMavenLocal -x :web3:compileTestDevelopmentExecutableKotlinJs -x :web3:compileTestKotlinJs # syncMultiPlatformLibraryDebugFrameworkIosX64
23
+ - name : Publish artifacts
24
+ run : ./gradlew :web3:publishKotlinMultiplatformPublicationToGitHubPackagesRepository
25
+ env :
26
+ GITHUB_ACTOR : ${{ secrets.GITHUB_ACTOR }}
27
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
28
+ # - name: Install pods with kotlin
29
+ # run: cd sample/ios-app && pod install
30
+ # - name: build ios sample
31
+ # run: cd sample/ios-app && set -o pipefail && xcodebuild -scheme ios-app -workspace ios-app.xcworkspace -configuration Debug -sdk iphonesimulator -arch x86_64 build CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO | xcpretty
Original file line number Diff line number Diff line change @@ -21,6 +21,14 @@ publishing {
21
21
}*/
22
22
repositories {
23
23
mavenLocal()
24
+ maven {
25
+ name = " GitHubPackages"
26
+ url = uri(" https://maven.pkg.github.com/SmartTokenLabs/moko-web3" )
27
+ credentials {
28
+ username = System .getenv(" GITHUB_ACTOR" )
29
+ password = System .getenv(" GITHUB_TOKEN" )
30
+ }
31
+ }
24
32
}
25
33
26
34
publications.withType<MavenPublication > {
You can’t perform that action at this time.
0 commit comments