Skip to content

Publish

Publish #31

Workflow file for this run

name: Publish
# reference: https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#workflow_run
on:
workflow_run:
workflows:
- "Release"
types:
- completed
branches:
- main
jobs:
publish-packages:
name: Publish Packages
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
# reference : https://github.com/gradle/gradle-build-action
- name: Publish Packages
uses: gradle/gradle-build-action@v2
with:
arguments: publish
env:
# until we have a maven central repository
# MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
# MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
GH_PACKAGE_TOKEN: ${{ secrets.GH_PACKAGE_TOKEN }}
GH_RELEASE_ACTOR: ${{ secrets.GH_GITHUB_ACTOR }}