Skip to content

Adjust CD to use sonatype repositories (#40) #2

Adjust CD to use sonatype repositories (#40)

Adjust CD to use sonatype repositories (#40) #2

name: 'Publish Snapshots'
on:
push:
branches:
- 'main'
jobs:
publish-snapshots:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Publish to GitHub Packages
run: ./gradlew publishAllPublicationsToGitHubPackagesRepository -PgithubPackagesUser=$GITHUB_ACTOR -PgithubPackagesKey=${{ secrets.GITHUB_TOKEN }}
- name: Publish to Sonatype Snapshot
run: ./gradlew publishAllPublicationsToSonatypeSnapshotRepository
env:
SONATYPE_USER: ${{ secrets.SONATYPE_USER }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
GPG_SIGNING_KEY: ${{ secrets.GPG_SIGNING_KEY }}
GPG_SIGNING_PASSWORD: ${{ secrets.GPG_SIGNING_PASSWORD }}