Skip to content

Commit

Permalink
Include submodule docs
Browse files Browse the repository at this point in the history
  • Loading branch information
JRoy authored May 1, 2021
1 parent f642506 commit 0e638b5
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/build-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,22 @@ jobs:
run: |
./gradlew publish
- name: Prepare Javadocs
if: ${{ success() && github.event_name == 'push' && github.repository == 'EssentialsX/Essentials' && github.ref == 'refs/heads/2.x' }}
run: |
mv Essentials/build/docs/javadoc/ javadocs/
cp EssentialsAntiBuild/build/docs/javadoc/ javadocs/EssentialsAntiBuild/
cp EssentialsChat/build/docs/javadoc/ javadocs/EssentialsChat/
cp EssentialsGeoIP/build/docs/javadoc/ javadocs/EssentialsGeoIP/
cp EssentialsProtect/build/docs/javadoc/ javadocs/EssentialsProtect/
cp EssentialsSpawn/build/docs/javadoc/ javadocs/EssentialsSpawn/
cp EssentialsXMPP/build/docs/javadoc/ javadocs/EssentialsXMPP/
- name: Deploy Javadocs
if: ${{ success() && github.event_name == 'push' && github.repository == 'EssentialsX/Essentials' && github.ref == 'refs/heads/2.x' }}
uses: netlify/actions/cli@master
with:
args: deploy --dir=Essentials/build/docs/javadoc/ --prod --message="Deploy from GitHub Actions"
args: deploy --dir=javadocs/ --prod --message="Deploy from GitHub Actions"
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_JD_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_JD_2X_SITE_ID }}

0 comments on commit 0e638b5

Please # to comment.