Skip to content

Commit 789a356

Browse files
committed
Publish javadoc
1 parent 333d4e9 commit 789a356

File tree

2 files changed

+57
-1
lines changed

2 files changed

+57
-1
lines changed

.github/workflows/publish-docs.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# This workflow uses actions that are not certified by GitHub.
2+
# They are provided by a third-party and are governed by
3+
# separate terms of service, privacy policy, and support
4+
# documentation.
5+
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
6+
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
7+
8+
name: Publish javadoc
9+
10+
on:
11+
push:
12+
branches: [ master ]
13+
14+
jobs:
15+
build:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v3
19+
- name: Set up JDK 11
20+
uses: actions/setup-java@v3
21+
with:
22+
java-version: '11'
23+
distribution: 'temurin'
24+
cache: gradle
25+
- name: Validate Gradle wrapper
26+
uses: gradle/wrapper-validation-action@55e685c48d84285a5b0418cd094606e199cca3b6
27+
- name: Build with Gradle
28+
run: ./gradlew javadoc
29+
- name: Cleanup Gradle Cache
30+
# Remove some files from the Gradle cache, so they aren't cached by GitHub Actions.
31+
# Restoring these files from a GitHub Actions cache might cause problems for future builds.
32+
run: |
33+
rm -f ~/.gradle/caches/modules-2/modules-2.lock
34+
rm -f ~/.gradle/caches/modules-2/gc.properties
35+
rm -fr ~/.gradle/caches/*/plugin-resolution/
36+
find ~/.gradle/caches/ -name "*.lock" -type f -delete
37+
- name: build artifact
38+
uses: actions/upload-artifact@v3
39+
with:
40+
name: doc-artifacts
41+
path: build/docs
42+
retention-days: 1
43+
publish-pages:
44+
runs-on: ubuntu-latest
45+
needs: [ build ]
46+
steps:
47+
- uses: actions/checkout@v3
48+
- name: Get docs artifact
49+
uses: actions/download-artifact@v3
50+
with:
51+
name: doc-artifacts
52+
path: docs
53+
- name: Deploy to GitHub pages
54+
uses: JamesIves/github-pages-deploy-action@4
55+
with:
56+
folder: docs

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ As an alternative, consider using `BigDecimal` with `MathContext.DECIMAL128`,
5757
Usage
5858
-----
5959

60-
For full javadoc (of latest tagged build), see https://firebirdsql.github.io/decimal-java/javadoc/
60+
For full javadoc (of latest build), see https://firebirdsql.github.io/decimal-java/javadoc/
6161

6262
Decoding a 4-byte Decimal32 to a `java.math.BigDecimal`:
6363

0 commit comments

Comments
 (0)