fix(ci): publish versioned javadocs only on gh-pages
This commit is contained in:
@@ -1,38 +0,0 @@
|
|||||||
name: Deploy Publish JavaDoc
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
publish:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
permissions:
|
|
||||||
contents: write
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Set up Temurin 21
|
|
||||||
uses: actions/setup-java@v4
|
|
||||||
with:
|
|
||||||
distribution: temurin
|
|
||||||
java-version: 21
|
|
||||||
cache: maven
|
|
||||||
|
|
||||||
- name: Build release artifacts
|
|
||||||
run: mvn -B -DskipTests clean verify
|
|
||||||
|
|
||||||
- name: Generate aggregated JavaDoc
|
|
||||||
run: mvn -B -DskipTests -pl flash,flash-extensions -am javadoc:aggregate
|
|
||||||
|
|
||||||
- name: Publish JavaDoc
|
|
||||||
uses: MathieuSoysal/Javadoc-publisher.yml@v3.0.2
|
|
||||||
with:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
javadoc-branch: javadoc
|
|
||||||
java-version: 21
|
|
||||||
target-folder: javadoc
|
|
||||||
project: maven
|
|
||||||
custom-command: mvn -B -DskipTests -pl flash,flash-extensions -am javadoc:aggregate -DskipTests
|
|
||||||
@@ -95,17 +95,18 @@ jobs:
|
|||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<title>Flash JavaDoc</title>
|
<title>Flash JavaDoc</title>
|
||||||
<style>
|
<style>
|
||||||
body {{ font-family: sans-serif; max-width: 600px; margin: 4rem auto; }}
|
body {{ font-family: Inter, Arial, sans-serif; max-width: 720px; margin: 5rem auto; padding: 0 1.5rem; color: #1f2937; background: #fff; }}
|
||||||
h1 {{ font-size: 1.6rem; }}
|
h1 {{ font-size: 2rem; margin-bottom: 0.5rem; letter-spacing: -0.02em; }}
|
||||||
ul {{ line-height: 2; }}
|
p {{ color: #6b7280; line-height: 1.6; }}
|
||||||
a {{ color: #0070f3; text-decoration: none; }}
|
ul {{ list-style: none; padding: 0; margin: 2rem 0 0; border-top: 1px solid #e5e7eb; }}
|
||||||
|
li {{ border-bottom: 1px solid #e5e7eb; }}
|
||||||
|
a {{ display: block; padding: 1rem 0; color: #111827; text-decoration: none; font-weight: 600; }}
|
||||||
a:hover {{ text-decoration: underline; }}
|
a:hover {{ text-decoration: underline; }}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1>Flash — JavaDoc</h1>
|
<h1>Flash — JavaDoc</h1>
|
||||||
<p><a href="latest/index.html">→ Latest</a></p>
|
<p>Browse the published API documentation for each release.</p>
|
||||||
<h2>All versions</h2>
|
|
||||||
<ul>
|
<ul>
|
||||||
{rows}
|
{rows}
|
||||||
</ul>
|
</ul>
|
||||||
|
|||||||
Reference in New Issue
Block a user