diff --git a/.github/workflows/publish-snapshot-jdk17.yml b/.github/workflows/publish-snapshot-jdk17.yml new file mode 100644 index 0000000..ae0121e --- /dev/null +++ b/.github/workflows/publish-snapshot-jdk17.yml @@ -0,0 +1,34 @@ +# Trigger building on push event, and publishing snapshot package if in base repository +name: Build and Publish snapshot package +on: + push: + branches: + - develop-0.0.10 + paths-ignore: + - '.github/**' + - 'docs/**' + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Set up JDK 17 + uses: actions/setup-java@v1 + with: + java-version: 17 + - name: Set up Node JS + uses: actions/setup-node@v2 + with: + node-version: 14 + - name: Build with Gradle + run: ./gradlew build + - name: Publish snapshot package + if: github.repository == 'bkdevops-projects/devops-framework' + env: + SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} + SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} + ORG_GRADLE_PROJECT_signingKey: ${{ secrets.SIGNING_KEY }} + ORG_GRADLE_PROJECT_signingKeyId: ${{ secrets.SIGNING_KEY_ID }} + ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.SIGNING_PASSWORD }} + run: ./gradlew publish