• 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@v4
38        with:
39          token: ${{ secrets.GITHUB_TOKEN }}
40          branch: site
41          folder: junit4/target/reports/apidocs
42          target-folder: docs/1.x/
43          clean: true
44