File tree Expand file tree Collapse file tree 3 files changed +56
-33
lines changed
Expand file tree Collapse file tree 3 files changed +56
-33
lines changed Original file line number Diff line number Diff line change 1+ name : Publish
2+
3+ on :
4+ push :
5+ branches : [main]
6+
7+ concurrency : publish-${{ github.ref }}
8+
9+ jobs :
10+ tests :
11+ uses : ./.github/workflows/tests.yml
12+
13+ publish :
14+ needs : [tests]
15+
16+ runs-on : ubuntu-24.04
17+
18+ permissions :
19+ packages : write
20+
21+ steps :
22+ - uses : actions/checkout@v4
23+ - name : Set up Java
24+ uses : actions/setup-java@v4
25+ with :
26+ java-version : ' 23'
27+ distribution : ' corretto'
28+ - name : Set up Maven GitHub Packages credentials
29+ run : |
30+ mkdir -p ~/.m2
31+ echo "<settings><servers><server><id>github-packages</id><username>${GITHUB_ACTOR}</username><password>${GITHUB_TOKEN}</password></server></servers></settings>" > ~/.m2/settings.xml
32+ env :
33+ GITHUB_ACTOR : ${{ github.actor }}
34+ GITHUB_TOKEN : ${{ github.token }}
35+ - name : Deploy with Maven
36+ run : mvn deploy
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1- name : Java CI
1+ name : Tests
22
3- on : [push, pull_request]
3+ on :
4+ pull_request :
5+ workflow_call :
46
57jobs :
6- build :
7- runs-on : ubuntu-latest
8-
8+ tests :
9+ name : Run tests
10+ strategy :
11+ matrix :
12+ os : [ubuntu-24.04, ubuntu-latest, windows-latest]
13+ runs-on : ${{ matrix.os }}
914 steps :
10- - uses : actions/checkout@v3
11- - name : Set up JDK 11
12- uses : actions/setup-java@v3
15+ # https://github.com/actions/checkout/issues/135#issuecomment-602171132
16+ - name : Set git to use LF
17+ run : |
18+ git config --global core.autocrlf false
19+ git config --global core.eol lf
20+ - uses : actions/checkout@v4
21+ - name : Set up Java
22+ uses : actions/setup-java@v4
1323 with :
14- java-version : ' 11 '
15- distribution : ' adopt '
24+ java-version : ' 23 '
25+ distribution : ' corretto '
1626 cache : maven
1727 - name : Build with Maven
1828 run : mvn --batch-mode test
You can’t perform that action at this time.
0 commit comments