File tree Expand file tree Collapse file tree 2 files changed +22
-2
lines changed Expand file tree Collapse file tree 2 files changed +22
-2
lines changed Original file line number Diff line number Diff line change 3
3
push :
4
4
branches :
5
5
- main
6
- - main_**
7
6
8
7
jobs :
9
8
build :
15
14
16
15
steps :
17
16
- uses : actions/checkout@v4
17
+ env :
18
+ GITHUB_TOKEN : ${{ secrets.REPO_TOKEN }} # Needed to get PR information, if any
18
19
with :
19
20
ref : ${{ github.head_ref }}
20
- token : ${{ secrets.REPO_TOKEN }}
21
21
22
22
- name : Set up JDK 21
23
23
uses : actions/setup-java@v4
Original file line number Diff line number Diff line change
1
+ name : Publish package to GitHub Packages
2
+ on :
3
+ release :
4
+ types : [created]
5
+ jobs :
6
+ publish :
7
+ runs-on : ubuntu-latest
8
+ permissions :
9
+ contents : read
10
+ packages : write
11
+ steps :
12
+ - uses : actions/checkout@v4
13
+ - uses : actions/setup-java@v4
14
+ with :
15
+ java-version : ' 21'
16
+ distribution : ' temurin'
17
+ - name : Publish package
18
+ run : mvn --batch-mode deploy
19
+ env :
20
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments