mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-01-24 16:14:26 +08:00
Create javadocs.yml
This commit is contained in:
parent
4e3c901e59
commit
a4e2c24dae
40
.github/workflows/javadocs.yml
vendored
Normal file
40
.github/workflows/javadocs.yml
vendored
Normal file
@ -0,0 +1,40 @@
|
||||
# This workflow will build a Java project with Gradle
|
||||
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
|
||||
|
||||
name: Automatically Deploy Javadocs
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout 🛎️
|
||||
uses: actions/checkout@v2.3.1
|
||||
|
||||
- name: Build Javadocs 🔧
|
||||
run: |
|
||||
cd Plan
|
||||
echo "Building javadocs with gradle"
|
||||
./gradlew aggregateJavadocs
|
||||
echo "Moving to working directory:"
|
||||
cd ../
|
||||
mkdir javadocs
|
||||
mkdir javadocs/all
|
||||
mkdir javadocs/api
|
||||
cp -r Plan/build/docs/javadoc/* javadocs/all/
|
||||
cp -r Plan/api/build/docs/javadoc/* javadocs/api/
|
||||
cd javadocs
|
||||
touch .nojekyll
|
||||
- name: Deploy 🚀
|
||||
uses: JamesIves/github-pages-deploy-action@4.0.0
|
||||
with:
|
||||
branch: gh-pages # The branch the action should deploy to.
|
||||
folder: javadocs # The folder the action should deploy.
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user