File tree Expand file tree Collapse file tree 3 files changed +19
-0
lines changed Expand file tree Collapse file tree 3 files changed +19
-0
lines changed Original file line number Diff line number Diff line change 6
6
build :
7
7
# Setup the OS
8
8
runs-on : ubuntu-latest
9
+ permissions :
10
+ contents : read
11
+ packages : write
9
12
env :
10
13
NEXUS_USERNAME : ' ${{ secrets.NEXUS_USERNAME }}'
11
14
NEXUS_PASSWORD : ' ${{ secrets.NEXUS_PASSWORD }}'
15
+ GITHUB_TOKEN : ' ${{ secrets.GITHUB_TOKEN }}'
12
16
steps :
13
17
# Checkout the code
14
18
- name : Ceckout the Code
19
23
with :
20
24
distribution : adopt
21
25
java-version : 8
26
+ # Validate Gradle Wrapper
27
+ - name : Validate Gradle Wrapper
28
+ uses : gradle/wrapper-validation-action@v1
22
29
# Test and deploy
23
30
- name : Make gradle executable
24
31
run : chmod +x gradlew
Original file line number Diff line number Diff line change 21
21
with :
22
22
distribution : adopt
23
23
java-version : ${{ matrix.java-version }}
24
+ # Validate Gradle Wrapper
25
+ - name : Validate Gradle Wrapper
26
+ uses : gradle/wrapper-validation-action@v1
24
27
# Setup executable gradle
25
28
- name : Make Gradle executable
26
29
run : chmod +x gradlew
Original file line number Diff line number Diff line change @@ -168,10 +168,19 @@ publishing {
168
168
}
169
169
repositories {
170
170
maven {
171
+ name = ' TheProgramSrcRepository'
171
172
credentials. username = System . getenv(' NEXUS_USERNAME' )
172
173
credentials. password = System . getenv(' NEXUS_PASSWORD' )
173
174
url = uri(version. contains(' -SNAPSHOT' ) ? ' https://repo.theprogramsrc.xyz/repository/maven-snapshots/' : ' https://repo.theprogramsrc.xyz/repository/maven-releases/' )
174
175
}
176
+ maven {
177
+ name = ' GitHubPackages'
178
+ url = ' https://maven.pkg.github.com/TheProgramSrc/SuperCoreAPI'
179
+ credentials {
180
+ username = System . getenv(' GITHUB_ACTOR' )
181
+ password = System . getenv(' GITHUB_TOKEN' )
182
+ }
183
+ }
175
184
}
176
185
}
177
186
You can’t perform that action at this time.
0 commit comments