-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (36 loc) · 981 Bytes
/
release.yaml
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
name: Release
on:
push:
branches:
- master
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: write
packages: write
steps:
- name: Clone repository
uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@v3
- name: Publish package
uses: gradle/actions/setup-gradle@v3
with:
arguments: publish
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: Publish documentation
run: |
git config user.email "[email protected]"
git config user.name "ci"
git fetch origin gh-pages
git checkout gh-pages
cp -r build/docs/javadoc/* .
git add .
git commit -m "Update documentation" && git push || true