mvn install before building docs #4
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow uses actions that are not certified by GitHub. | |
# They are provided by a third-party and are governed by | |
# separate terms of service, privacy policy, and support | |
# documentation. | |
name: Documentation | |
on: | |
push: | |
branches: [ "master", "documentation" ] | |
permissions: | |
contents: read | |
jobs: | |
build-docs: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '11' | |
distribution: 'temurin' | |
cache: 'sbt' | |
- name: Compile Vert.x Lang Scala | |
run: mvn install -DskipTests | |
- name: Compile Documentation | |
run: cd vertx-lang-scala && sbt doc | |
- name: Upload GitHub Pages artifact | |
uses: actions/upload-pages-artifact@v2.0.0 | |
with: | |
path: vertx-lang-scala/target/scala-3.1.1/api/ | |
- name: Deploy GitHub Pages site | |
uses: actions/deploy-pages@v1.2.9 | |