• 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: release
16
17on:
18  push:
19    tags:
20      - '**'
21
22jobs:
23  release:
24    runs-on: ubuntu-latest
25
26    steps:
27      - uses: actions/checkout@v4
28
29      - uses: actions/setup-java@v3
30        with:
31          distribution: 'zulu'
32          java-version: 11
33
34      - run: mvn javadoc:javadoc
35
36      - name: Deploy docs to website
37        uses: JamesIves/github-pages-deploy-action@releases/v3
38        with:
39          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
40          BRANCH: site
41          FOLDER: junit4/target/site/apidocs
42          TARGET_FOLDER: docs/1.x/
43          CLEAN: true
44