forked from helenocampos/fitapp
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (36 loc) · 998 Bytes
/
cd.yml
File metadata and controls
36 lines (36 loc) · 998 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Publish coverage reports
on:
workflow_run:
workflows: ["Unit tests"]
branches:
- master
types:
- completed
jobs:
deploy-coverage:
name: Deploy Coverage Reports
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up JDK 17 for x64
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'corretto'
architecture: x64
- run: mvn package
- run: mkdir staging && cp target/*.jar staging
- uses: actions/upload-artifact@v4
with:
name: Package
path: staging
- name: Deploy Coverage reports documentation
uses: peaceiris/actions-gh-pages@v3.9.3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: cov
publish_dir: target/site/jacoco