-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (34 loc) · 1.04 KB
/
publish.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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 }}