File tree Expand file tree Collapse file tree 2 files changed +54
-11
lines changed
Expand file tree Collapse file tree 2 files changed +54
-11
lines changed Original file line number Diff line number Diff line change 1- name : Java CI
1+ # This workflow will build a package using Maven and then publish it to GitHub packages when a release is created
2+ # For more information see: https://github.com/actions/setup-java/blob/main/docs/advanced-usage.md#apache-maven-with-a-settings-path
23
3- on : [push]
4+ name : Maven Package
5+
6+ on :
7+ release :
8+ types : [push]
49
510jobs :
611 build :
712 runs-on : ubuntu-latest
8-
13+ permissions :
14+ contents : read
15+ packages : write
916 steps :
10- - uses : actions/checkout@v2
11- - name : Set up JDK 8.0.312
12- uses : actions/setup-java@v2
13- with :
14- java-version : ' 8.0.312+7'
15- distribution : ' adopt'
16- - name : NBM
17- run : mvn clean install
17+ - uses : actions/checkout@v2
18+ - name : Set up JDK 8.0.312
19+ uses : actions/setup-java@v2
20+ with :
21+ java-version : ' 8.0.312+7'
22+ distribution : ' adopt'
23+ server-id : github # Value of the distributionManagement/repository/id field of the pom.xml
24+ settings-path : ${{ github.workspace }} # location for the settings.xml file
25+
26+ - name : Build with Maven
27+ run : mvn -B package --file pom.xml
28+
29+ - name : Publish to GitHub Packages Apache Maven
30+ run : mvn deploy -s $GITHUB_WORKSPACE/settings.xml
31+ env :
32+ GITHUB_TOKEN : ${{ github.token }}
33+
34+
35+ # name: Java CI
36+ #
37+ # on: [push]
38+ #
39+ # jobs:
40+ # build:
41+ # runs-on: ubuntu-latest
42+ #
43+ # steps:
44+ # - uses: actions/checkout@v2
45+ # - name: Set up JDK 8.0.312
46+ # uses: actions/setup-java@v2
47+ # with:
48+ # java-version: '8.0.312+7'
49+ # distribution: 'adopt'
50+ # - name: NBM
51+ # run: mvn clean install
Original file line number Diff line number Diff line change 135135 <properties >
136136 <project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
137137 </properties >
138+
139+ <distributionManagement >
140+ <repository >
141+ <id >github</id >
142+ <name >GitHub Moacir da Roza Flores Apache Maven Packages</name >
143+ <url >https://maven.pkg.github.com/moacirrf/nb-java-decompiler</url >
144+ </repository >
145+ </distributionManagement >
146+
138147</project >
You can’t perform that action at this time.
0 commit comments