-
Notifications
You must be signed in to change notification settings - Fork 1
55 lines (51 loc) · 1.45 KB
/
ci.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
52
53
54
55
name: CI
on:
pull_request:
branches:
- master
push:
branches:
- master
- feature/*
jobs:
build:
name: Gradle Build and Test
runs-on: [ubuntu-latest]
steps:
- uses: actions/checkout@v1
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Build with Gradle
run: cd api && ./gradlew build
api-docs:
needs: [build]
name: Build and Deploy API documentation
if: github.ref == 'refs/heads/master'
runs-on: [ubuntu-latest]
steps:
- uses: actions/checkout@v1
- name: Build API documentation with Asccidoctor
run: cd api && ./gradlew asciidoc
- name: Deploy API documentation to GitHub Pages
uses: alex-page/blazing-fast-gh-pages-deploy@v1.1.0
with:
# The personal access token secret can be passed in using {{ secrets.GH_PAT }}
repo-token: ${{ secrets.PAT }}
# The directory for the built website
site-directory: api/build/asciidoc/html5
# The branch to deploy the built website to
deploy-branch: gh-pages
deploy-balena:
needs: [build]
name: Trigger Deploy
runs-on: [ubuntu-latest]
if: github.ref == 'refs/heads/master'
steps:
- name: Dispatch
uses: peter-evans/repository-dispatch@v1.0.0
with:
token: ${{ secrets.PAT }}
repository: bjs-org/bjs-org
event-type: docker-deploy