File tree Expand file tree Collapse file tree 2 files changed +13
-31
lines changed Expand file tree Collapse file tree 2 files changed +13
-31
lines changed Original file line number Diff line number Diff line change 44name : Java CI with Gradle
55
66on :
7- # push:
8- # branches: [ master ]
9- # pull_request:
10- # branches: [ master ]
11- release :
12- types : [created]
7+ push :
8+ branches : [ master ]
9+ pull_request :
10+ branches : [ master ]
1311
1412jobs :
1513 build :
16-
1714 runs-on : ubuntu-latest
18-
1915 steps :
20- - uses : actions/checkout@v2
16+ - name : Check out source code
17+ uses : actions/checkout@v2
2118 - name : Set up JDK 1.8
2219 uses : actions/setup-java@v1
2320 with :
2421 java-version : 1.8
25- - name : Grant execute permission for gradlew
22+ - name : Grant permission for gradlew
2623 run : chmod +x gradlew
2724 - name : Build with Gradle
2825 run : ./gradlew build
29- - name : Publish package
30- run : gradle publish
31- env :
32- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
33- # - uses: actions/upload-artifact@v2
34- # with:
35- # name: jar-artifact
36- # path: build/libs
37- # if-no-files-found: error # 'warn' or 'ignore' are also available, defaults to `warn`
26+ - name : Upload artifact
27+ uses : actions/upload-artifact@v2
28+ with :
29+ name : Artifact
30+ path : build/libs
31+ if-no-files-found : error # 'warn' or 'ignore' are also available, defaults to `warn`
Original file line number Diff line number Diff line change @@ -49,15 +49,3 @@ Java library to assist smooth development on VeChain,
4949Includes wallets creation, transaction assembling,
5050signature, ABI encoding and bloom filter."""
5151
52- publishing {
53- repositories {
54- maven {
55- name = " GitHubPackages"
56- url = " https://maven.pkg.github.com/laalaguer/thor-devkit.java"
57- credentials {
58- username = System . getenv(" GITHUB_ACTOR" )
59- password = System . getenv(" GITHUB_TOKEN" )
60- }
61- }
62- }
63- }
You can’t perform that action at this time.
0 commit comments