mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-01-18 16:05:43 +08:00
Build javadocs in PRs
- Makes sure that PRs don't break javadocs
This commit is contained in:
parent
7491e54692
commit
9096ff05e5
12
.github/workflows/ci.yml
vendored
12
.github/workflows/ci.yml
vendored
@ -22,7 +22,8 @@ jobs:
|
||||
options: --health-cmd="mysqladmin ping" --health-interval=5s --health-timeout=2s --health-retries=3
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: 📥 Checkout git repository
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: ☕ Setup JDK
|
||||
@ -32,7 +33,7 @@ jobs:
|
||||
java-version: '17'
|
||||
- name: 🚦 Setup Selenium Webdriver
|
||||
uses: nanasess/setup-chromedriver@v1
|
||||
- name: Setup Selenium Webdriver settings
|
||||
- name: 🚦 Setup Selenium Webdriver settings
|
||||
run: |
|
||||
export DISPLAY=:99
|
||||
chromedriver --url-base=/wd/hub &
|
||||
@ -57,7 +58,7 @@ jobs:
|
||||
run: |
|
||||
cd Plan
|
||||
./gradlew shadowJar
|
||||
- name: Get versions 🛒
|
||||
- name: ⚙ Get versions
|
||||
run: |
|
||||
cd Plan
|
||||
./gradlew snapshotVersion jarNameVersion
|
||||
@ -86,8 +87,7 @@ jobs:
|
||||
run: |
|
||||
cd Plan
|
||||
./gradlew build
|
||||
- name: 🖨 Build Javadocs
|
||||
if: github.ref == 'refs/heads/master'
|
||||
- name: 🖨 Build Javadocs
|
||||
run: |
|
||||
cd Plan
|
||||
echo "Building javadocs with gradle"
|
||||
@ -102,7 +102,7 @@ jobs:
|
||||
cp scripts/index.html javadocs/index.html
|
||||
cd javadocs
|
||||
touch .nojekyll
|
||||
- name: 🖨 Deploy Javadocs
|
||||
- name: 📤 Deploy Javadocs
|
||||
if: github.ref == 'refs/heads/master'
|
||||
uses: JamesIves/github-pages-deploy-action@4.1.4
|
||||
with:
|
||||
|
Loading…
Reference in New Issue
Block a user