@@ -14,11 +14,11 @@ jobs:
14
14
build :
15
15
runs-on : ubuntu-20.04
16
16
steps :
17
- - uses : actions/checkout@v2
18
- - uses : coursier/cache-action@v5
19
- - uses : coursier/setup-action@v1.1.2
17
+ - uses : actions/checkout@v3
18
+ - uses : coursier/cache-action@v6
19
+ - uses : coursier/setup-action@v1.3.0
20
20
with :
21
- jvm : adopt:11
21
+ jvm : zulu:17
22
22
- name : Check format
23
23
run : ./millw __.checkFormat
24
24
- name : Compile all
@@ -29,20 +29,18 @@ jobs:
29
29
run : ./millw __.test
30
30
31
31
- name : Setup GPG secrets for publish
32
- if : github.event_name != 'pull_request' && github.event_name == 'push' && ((startsWith(github.ref, 'refs/tags/')) || github.ref == 'refs/heads/main')
33
32
run : |
34
33
gpg --version
35
34
cat <(echo "${{ secrets.GPG_SECRET_KEY }}") | base64 --decode | gpg --batch --import
36
35
37
- - name : Publish to Nexus Repository
36
+ - name : Publish to Github packages
38
37
if : github.event_name != 'pull_request' && github.event_name == 'push' && ((startsWith(github.ref, 'refs/tags/')) || github.ref == 'refs/heads/main')
39
38
run : |
40
39
./millw mill.scalalib.PublishModule/publishAll \
41
40
__.publishArtifacts \
42
- --sonatypeCreds '${{ secrets.SONATYPE_CREDS }}' \
41
+ --sonatypeCreds '${{ github.repository_owner }}:${{ secrets.GITHUB_TOKEN }}' \
43
42
--stagingRelease false \
44
- --sonatypeUri "https://nexus.iog.solutions/repository/maven-release/" \
45
- --sonatypeSnapshotUri "https://nexus.iog.solutions/repository/maven-snapshot/" \
43
+ --sonatypeUri "https://maven.pkg.github.com/${{ github.repository }}" \
46
44
--gpgArgs --batch,--yes,-a,-b
47
45
48
46
publish-notes :
0 commit comments