File tree Expand file tree Collapse file tree 4 files changed +91
-2
lines changed Expand file tree Collapse file tree 4 files changed +91
-2
lines changed Original file line number Diff line number Diff line change
1
+ name : Release
2
+ on :
3
+ push :
4
+ branches :
5
+ - main
6
+ pull_request :
7
+ branches :
8
+ - main
9
+ jobs :
10
+ release :
11
+ name : Release
12
+ runs-on : ubuntu-latest
13
+ steps :
14
+ - name : Checkout
15
+ uses : actions/checkout@v2
16
+ with :
17
+ fetch-depth : 0
18
+ - name : Setup JDK
19
+ uses : actions/setup-java@v2
20
+ with :
21
+ java-version : ' 8'
22
+ distribution : ' adopt'
23
+ cache : gradle
24
+ - name : Setup Node.js
25
+ uses : actions/setup-node@v2
26
+ with :
27
+ node-version : " lts/*"
28
+ - name : Make gradlew executable
29
+ run : chmod +x gradlew
30
+ - name : Build with Gradle
31
+ env :
32
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
33
+ run : ./gradlew build
34
+ - name : Setup semantic-release
35
+ run : npm install -g semantic-release @semantic-release/git @semantic-release/changelog gradle-semantic-release-plugin -D
36
+ - name : Release
37
+ env :
38
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
39
+ run : npx semantic-release
Original file line number Diff line number Diff line change
1
+ {
2
+ "branches": [
3
+ "main",
4
+ {
5
+ "name": "dev",
6
+ "prerelease": true
7
+ }
8
+ ],
9
+ "plugins": [
10
+ "@semantic-release/commit-analyzer",
11
+ "@semantic-release/release-notes-generator",
12
+ "@semantic-release/changelog",
13
+ "gradle-semantic-release-plugin",
14
+ [
15
+ "@semantic-release/git",
16
+ {
17
+ "assets": [
18
+ "CHANGELOG.md",
19
+ "gradle.properties"
20
+ ]
21
+ }
22
+ ],
23
+ "@semantic-release/github"
24
+ ]
25
+ }
Original file line number Diff line number Diff line change 1
1
plugins {
2
2
kotlin(" jvm" ) version " 1.6.20"
3
3
id(" com.github.johnrengelman.shadow" ) version " 7.1.2"
4
+ java
5
+ `maven- publish`
4
6
}
5
7
6
8
group = " app.revanced"
@@ -12,7 +14,7 @@ repositories {
12
14
url = uri(" https://maven.pkg.github.com/revanced/multidexlib2" )
13
15
credentials {
14
16
username = project.findProperty(" gpr.user" ) as String? ? : System .getenv(" GITHUB_ACTOR" ) // DO NOT CHANGE!
15
- password = project.findProperty(" gpr.key" ) as String? ? : System .getenv(" GITHUB_TOKEN" ) // DO NOT CHANGE!
17
+ password = project.findProperty(" gpr.key" ) as String? ? : System .getenv(" GITHUB_TOKEN" ) // DO NOT CHANGE!
16
18
}
17
19
}
18
20
maven {
@@ -33,6 +35,11 @@ dependencies {
33
35
implementation(" org.bouncycastle:bcpkix-jdk15on:+" )
34
36
}
35
37
38
+ java {
39
+ withSourcesJar()
40
+ withJavadocJar()
41
+ }
42
+
36
43
tasks {
37
44
build {
38
45
dependsOn(shadowJar)
@@ -48,3 +55,21 @@ tasks {
48
55
}
49
56
}
50
57
}
58
+
59
+ publishing {
60
+ repositories {
61
+ maven {
62
+ name = " GitHubPackages"
63
+ url = uri(" https://maven.pkg.github.com/revanced/revanced-cli" )
64
+ credentials {
65
+ username = System .getenv(" GITHUB_ACTOR" )
66
+ password = System .getenv(" GITHUB_TOKEN" )
67
+ }
68
+ }
69
+ }
70
+ publications {
71
+ register<MavenPublication >(" gpr" ) {
72
+ from(components[" java" ])
73
+ }
74
+ }
75
+ }
Original file line number Diff line number Diff line change 1
1
kotlin.code.style =official
2
- version = 1.0.0-dev
2
+ version = 1.0.0
You can’t perform that action at this time.
0 commit comments