mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2024-12-15 12:40:30 +00:00
320007dbc6
- Publish javadoc again: for now this is just the common-api - Remove all dependencies from the published Forge jar. This is technically not needed (fg.deobf does this anyway), but seems sensible.
41 lines
967 B
YAML
41 lines
967 B
YAML
name: Build documentation
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- mc-1.19.x
|
|
|
|
jobs:
|
|
make_doc:
|
|
name: Build
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Clone repository
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Set up Java
|
|
uses: actions/setup-java@v1
|
|
with:
|
|
java-version: 17
|
|
distribution: 'temurin'
|
|
|
|
- name: Setup Gradle
|
|
uses: gradle/gradle-build-action@v2
|
|
with:
|
|
cache-read-only: ${{ !startsWith(github.ref, 'refs/heads/mc-') }}
|
|
|
|
- name: Build with Gradle
|
|
run: ./gradlew compileJava --no-daemon || ./gradlew compileJava --no-daemon
|
|
|
|
- name: Generate documentation
|
|
run: ./gradlew docWebsite :common-api:javadoc --no-daemon
|
|
|
|
- name: Upload documentation
|
|
run: .github/workflows/make-doc.sh 2> /dev/null
|
|
env:
|
|
SSH_KEY: ${{ secrets.SSH_KEY }}
|
|
SSH_USER: ${{ secrets.SSH_USER }}
|
|
SSH_HOST: ${{ secrets.SSH_HOST }}
|
|
SSH_PORT: ${{ secrets.SSH_PORT }}
|