123456789101112131415161718192021222324252627282930313233343536373839 |
- name: Publish Gradle plugin snapshots
- on:
- push:
- paths:
- - 'gradle-plugins/**'
- - '.github/workflows/gradle-plugins.yml'
- branches:
- - main
- workflow_dispatch:
- jobs:
- snapshot:
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v2.3.4
- with:
- fetch-depth: 0
- - name: Set up JDK 11 for running checks
- uses: actions/setup-java@v2
- with:
- distribution: adopt
- java-version: 11
- - name: Cache Gradle Wrapper
- uses: actions/cache@v2
- with:
- path: ~/.gradle/wrapper
- key: ${{ runner.os }}-gradle-wrapper-cache-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
- - name: Publish snapshot
- env:
- SONATYPE_USER: ${{ secrets.SONATYPE_USER }}
- SONATYPE_KEY: ${{ secrets.SONATYPE_KEY }}
- GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
- GPG_PASSWORD: ${{ secrets.GPG_PASSWORD }}
- run: ../gradlew build publishToSonatype
- working-directory: gradle-plugins
|