Skip to content

Commit

Permalink
[build] Replace depracated publish target with GitHub Packages
Browse files Browse the repository at this point in the history
  • Loading branch information
dzajkowski committed Aug 18, 2023
1 parent 034987a commit b4e75a8
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: coursier/cache-action@v5
- uses: coursier/setup-action@v1.1.2
- uses: actions/checkout@v3
- uses: coursier/cache-action@v6
- uses: coursier/setup-action@v1.3.0
with:
jvm: adopt:11
jvm: zulu:17
- name: Check format
run: ./millw __.checkFormat
- name: Compile all
Expand All @@ -29,20 +29,18 @@ jobs:
run: ./millw __.test

- name: Setup GPG secrets for publish
if: github.event_name != 'pull_request' && github.event_name == 'push' && ((startsWith(github.ref, 'refs/tags/')) || github.ref == 'refs/heads/main')
run: |
gpg --version
cat <(echo "${{ secrets.GPG_SECRET_KEY }}") | base64 --decode | gpg --batch --import
- name: Publish to Nexus Repository
- name: Publish to Github packages
if: github.event_name != 'pull_request' && github.event_name == 'push' && ((startsWith(github.ref, 'refs/tags/')) || github.ref == 'refs/heads/main')
run: |
./millw mill.scalalib.PublishModule/publishAll \
__.publishArtifacts \
--sonatypeCreds '${{ secrets.SONATYPE_CREDS }}' \
--sonatypeCreds '${{ github.repository_owner }}:${{ secrets.GITHUB_TOKEN }}' \
--stagingRelease false \
--sonatypeUri "https://nexus.iog.solutions/repository/maven-release/" \
--sonatypeSnapshotUri "https://nexus.iog.solutions/repository/maven-snapshot/" \
--sonatypeUri "https://maven.pkg.github.com/${{ github.repository }}" \
--gpgArgs --batch,--yes,-a,-b
publish-notes:
Expand Down

0 comments on commit b4e75a8

Please sign in to comment.