improve mongodsl copy #247
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish to Snapshot Maven | |
on: | |
push: | |
branches: [ main ] | |
paths: | |
- 'examples/**' | |
- 'lib/**' | |
- 'starters/**' | |
- 'gradle/**' | |
- 'build.gradle.kts' | |
- 'settings.gradle.kts' | |
- 'gradle.properties' | |
- 'buildSrc/**' | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
server-id: github | |
settings-path: ${{ github.workspace }} | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@v4 | |
with: | |
gradle-version: current | |
- name: Publish to Maven Repository | |
run: gradle publish --parallel | |
env: | |
SNAPSHOT: true | |
gpg_private_key: ${{ secrets.gpg_private_key }} | |
gpg_passphrase: ${{ secrets.gpg_passphrase }} | |
nexus_username: ${{ secrets.nexus_username }} | |
nexus_password: ${{ secrets.nexus_password }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |