Skip to content

[ETHALFOS24-54] fix publication #116

[ETHALFOS24-54] fix publication

[ETHALFOS24-54] fix publication #116

Workflow file for this run

name: build
on:
push:
branches:
- 'master'
- 'release'
pull_request:
env:
ORG_GRADLE_PROJECT_alfresco_nexus_username: ${{ secrets.ALFRESCO_NEXUS_USERNAME }}
ORG_GRADLE_PROJECT_alfresco_nexus_password: ${{ secrets.ALFRESCO_NEXUS_PASSWORD }}
ORG_GRADLE_PROJECT_cloudsmith_user: ${{ secrets.CLOUDSMITH_USER }}
ORG_GRADLE_PROJECT_cloudsmith_password: ${{ secrets.CLOUDSMITH_APIKEY }}
jobs:
buildAndPublish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/setup-java@v1
with:
java-version: 11
- name: Assemble artifacts
run: ./gradlew assemble --info
- name: Publish
if: ${{ startsWith(github.ref, 'refs/heads/master') || startswith(github.ref, 'refs/heads/release') }}
env:
SIGNING_PRIVATE_KEY: ${{ secrets.MAVEN_CENTRAL_GPG_KEY }}
SIGNING_PASSWORD: ${{ secrets.MAVEN_CENTRAL_GPG_PASSWORD }}
ORG_GRADLE_PROJECT_sonatype_username: ${{ secrets.SONATYPE_S01_USERNAME }}
ORG_GRADLE_PROJECT_sonatype_password: ${{ secrets.SONATYPE_S01_PASSWORD }}
run: ./gradlew publish --info