-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (34 loc) · 969 Bytes
/
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
on:
release:
types: [ published ]
env:
SDK_VERSION_NAME: ${{ github.ref_name }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: "temurin"
java-version: 17
- name: Build
run: ./gradlew build
- name: Publish to Maven Repository
run: |
eval $(ssh-agent -s)
ssh-add - <<< "${{ secrets.MAVEN_DEPLOY }}"
./github_release.sh
- name: Publish to GitHub Packages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: ./gradlew publishAllPublicationsToGitHubPackagesRepository
- name: Generate documentation
run: ./gradlew dokkaHtmlMultiModule
- name: Deploy documentation
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: docs