Skip to content

Commit 7da5d5b

Browse files
committed
github ci
1 parent d03506a commit 7da5d5b

8 files changed

Lines changed: 61 additions & 48 deletions

File tree

.github/workflows/android.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ jobs:
2121
env:
2222
BINTRAY_APIKEY: ${{ secrets.BINTRAY_APIKEY }}
2323
BINTRAY_USER: ${{ secrets.BINTRAY_USER }}
24-
run: ./gradlew :GestureLockView:bintrayUpload
24+
run: ./gradlew ':CodeEditText:bintrayUpload

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ out/
1717

1818
# Gradle
1919
.gradle
20-
gradle
20+
#gradle
2121
/.idea/workspace.xml
2222
/.idea/libraries/*
2323
build

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Top-level build file where you can add configuration options common to all sub-projects/modules.
22

33
buildscript {
4-
def gradleVersion = "$DEFAULT_GRADLE_VERSION"
4+
def gradleVersion = "3.5.3"
55
File propertiesFile = file('local.properties')
66
if (propertiesFile.exists()) {
77
Properties localProperties = new Properties()
@@ -28,7 +28,7 @@ buildscript {
2828
allprojects {
2929
repositories {
3030
jcenter()
31-
// maven {url 'https://dl.bintray.com/lwjfork/maven/'}
31+
google()
3232
}
3333
}
3434

gradle/wrapper/gradle-wrapper.jar

53.1 KB
Binary file not shown.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#Wed May 13 13:42:37 CST 2020
2+
distributionBase=GRADLE_USER_HOME
3+
distributionPath=wrapper/dists
4+
zipStoreBase=GRADLE_USER_HOME
5+
zipStorePath=wrapper/dists
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.4-all.zip

gradlew

100644100755
Lines changed: 42 additions & 30 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gradlew.bat

Lines changed: 4 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

library/build.gradle

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,6 @@ rootProject.ext.DEVELOPER_ID = "lwjfork"
4444
rootProject.ext.DEVELOPER_NAME = "lwjfork"
4545
// 这里改成开发者邮箱,比如[email]someone@android.com[/email]
4646
rootProject.ext.DEVELOPER_EMAIL = "lwjfork@gmail.com"
47-
// 用户名
48-
rootProject.ext.BINTRAY_USER = "lwjfork"
4947
// 这里改成库版本 , 比如22.2.0
5048
rootProject.ext.PROJ_VERSION = "1.0.5"
5149
// 这里改成库名字 , 比如appcompat
@@ -62,8 +60,11 @@ rootProject.ext.PROJ_VCSURL = "https://github.com/lwjfork/CodeEditText.git"
6260
rootProject.ext.PROJ_DESCRIPTION = "Password Verify Code"
6361
// 这里改成库的标示 , 比如appcompat - v7
6462
rootProject.ext.PROJ_ARTIFACTID = "CodeEditText"
65-
// 发布时必须有值,建议写到 local.properties 里
66-
rootProject.ext.BINTRAY_APIKEY = "" //
63+
// 发布时必须有值,建议写到 local.properties 里 或者环境变量中,local.properties 定义优先
64+
rootProject.ext.BINTRAY_APIKEY = System.getenv("BINTRAY_APIKEY") //
65+
rootProject.ext.BINTRAY_USER = System.getenv("BINTRAY_USER")
66+
rootProject.ext.PROJ_PACKAGING = "aar"
67+
rootProject.ext.PROJ_REPO = "maven"
6768

6869

6970
apply from: "https://raw.githubusercontent.com/lwjfork/scriptlib/master/gradle/bintray.gradle"

0 commit comments

Comments
 (0)