Skip to content

Commit

Permalink
Add javadoc.yml and update maven.yml #255 (#257)
Browse files Browse the repository at this point in the history
* Added javadoc.yml

* Made changes to javadoc.yml

* Make push events on main to automatically trigger this workflow

---------

Co-authored-by: Fanon Jupkwo <[email protected]>
  • Loading branch information
shrutikumar15 and FanJups authored Sep 4, 2023
1 parent 87764da commit 0a62bd0
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 4 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/javadoc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Maven Site

on:
push:
branches: [ main ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 17
# Given the fact that this is a multimodule project, build process will take long time so we activate caching
# To know more: https://maven.apache.org/extensions/maven-build-cache-extension/cache.html
cache: 'maven'
- name: Build Javadoc Site with Maven
#To see the full stack trace of the errors, re-run Maven with the -e switch.
#Re-run Maven using the -X switch to enable full debug logging.
# -B,--batch-mode Run in non-interactive (batch) mode (disables output color)
# To learn more about options: https://maven.apache.org/ref/3.6.3/maven-embedder/cli.html
run: |
mvn clean site -B -e -X --projects 'jsgenerator-core'
env:
MAVEN_SITE_GITHUB_OAUTH_TOKEN: ${{ secrets.MAVEN_SITE_GITHUB_OAUTH_TOKEN }}
5 changes: 1 addition & 4 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,4 @@ jobs:
# -B,--batch-mode Run in non-interactive (batch) mode (disables output color)
# To learn more about options: https://maven.apache.org/ref/3.6.3/maven-embedder/cli.html
run: |
mvn package -B -e -X
mvn site -B -e -X --projects 'jsgenerator-core'
env:
MAVEN_SITE_GITHUB_OAUTH_TOKEN: ${{ secrets.MAVEN_SITE_GITHUB_OAUTH_TOKEN }}
mvn clean test -B -e -X

0 comments on commit 0a62bd0

Please sign in to comment.