Publish #32
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |