• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2021 Google Inc.
2#
3# Licensed under the Apache License, Version 2.0 (the "License"); you may not
4# use this file except in compliance with the License. You may obtain a copy of
5# the License at
6#
7#     http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12# License for the specific language governing permissions and limitations under
13# the License.
14
15name: build
16
17on:
18  pull_request: {}
19  push:
20    branches:
21      - '**'
22    tags-ignore:
23      - '**'
24
25jobs:
26  build:
27    runs-on: ubuntu-latest
28
29    steps:
30      - uses: actions/checkout@v4
31
32      - uses: actions/setup-java@v3
33        with:
34          distribution: 'zulu'
35          java-version: 11
36          cache: maven
37
38      - run: mvn --update-snapshots -B verify javadoc:javadoc
39
40      - name: Deploy docs to website
41        if: ${{ github.ref == 'refs/heads/main' }}
42        uses: JamesIves/github-pages-deploy-action@v4
43        with:
44          token: ${{ secrets.GITHUB_TOKEN }}
45          branch: site
46          folder: junit4/target/reports/apidocs
47          target-folder: docs/latest/
48          clean: true
49