Skip to content

Commit b4e75a8

Browse files
committed
[build] Replace depracated publish target with GitHub Packages
1 parent 034987a commit b4e75a8

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

.github/workflows/ci.yaml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ jobs:
1414
build:
1515
runs-on: ubuntu-20.04
1616
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
2020
with:
21-
jvm: adopt:11
21+
jvm: zulu:17
2222
- name: Check format
2323
run: ./millw __.checkFormat
2424
- name: Compile all
@@ -29,20 +29,18 @@ jobs:
2929
run: ./millw __.test
3030

3131
- 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')
3332
run: |
3433
gpg --version
3534
cat <(echo "${{ secrets.GPG_SECRET_KEY }}") | base64 --decode | gpg --batch --import
3635
37-
- name: Publish to Nexus Repository
36+
- name: Publish to Github packages
3837
if: github.event_name != 'pull_request' && github.event_name == 'push' && ((startsWith(github.ref, 'refs/tags/')) || github.ref == 'refs/heads/main')
3938
run: |
4039
./millw mill.scalalib.PublishModule/publishAll \
4140
__.publishArtifacts \
42-
--sonatypeCreds '${{ secrets.SONATYPE_CREDS }}' \
41+
--sonatypeCreds '${{ github.repository_owner }}:${{ secrets.GITHUB_TOKEN }}' \
4342
--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 }}" \
4644
--gpgArgs --batch,--yes,-a,-b
4745
4846
publish-notes:

0 commit comments

Comments
 (0)