-
Notifications
You must be signed in to change notification settings - Fork 6
51 lines (44 loc) · 1.39 KB
/
admin-api-documentation.yml
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Push Admin API documentation
on:
push:
paths:
- "api/agencyadminservice.yaml"
branches-ignore:
- "master"
- "develop"
jobs:
documentation:
name: Pushes changes to Admin API
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup JVM
uses: actions/setup-java@v1
with:
java-version: 11.0.10
java-package: jdk
architecture: x64
- name: Caching maven dependencies
uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Maven generate sources
run: mvn generate-sources
- name: Push Admin API to documentation
uses: andstor/copycat-action@v3
with:
personal_token: ${{ secrets.GH_PACKAGE_RELEASE_TOKEN }}
src_path: ../target/generated-sources/markdown/agencyservice
dst_path: docs/backend/admin/agencyservice
dst_owner: ${{ github.repository_owner }}
dst_repo_name: ${{ secrets.DOCUMENTATION_REPO }}
src_branch: develop
dst_branch: adminapi
clean: true
commit_message: "docs: updated agency service admin api description"
- name: Maven clean
run: mvn -B -Pprod clean