Skip to content

Merge pull request #3 from ya-b/dev #21

Merge pull request #3 from ya-b/dev

Merge pull request #3 from ya-b/dev #21

Workflow file for this run

name: publish
on:
push:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: 'adopt'
java-version: '8'
- name: prepare
run: |
chmod a+x ./gradlew
echo "${{ secrets.SIGNING_SECRET_KEY_RING_KEY }}" | base64 -d > ~/secring.gpg
- name: build
run: ./gradlew :build
env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
- name: publish
run: ./gradlew :publish -Psigning.keyId=${{ secrets.SIGNING_KEY_ID }} -Psigning.password=${{ secrets.SIGNING_PASSWORD }} -Psigning.secretKeyRingFile=$(echo ~/secring.gpg)
env:
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}