Skip to content

Prepare for next version #21

Prepare for next version

Prepare for next version #21

name: 'Publish Snapshots'
on:
push:
branches:
- 'main'
env:
GPG_SIGNING_KEY: ${{ secrets.GPG_SIGNING_KEY }}
GPG_SIGNING_PASSWORD: ${{ secrets.GPG_SIGNING_PASSWORD }}
SONATYPE_USER: ${{ secrets.SONATYPE_USER }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
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