-
Notifications
You must be signed in to change notification settings - Fork 22
56 lines (43 loc) · 1.28 KB
/
gh-pages.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
56
name: Deploy to GitHub Pages
on:
release:
types: [published]
jobs:
deploy:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 17
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: 18
cache: 'npm'
- name: Install Node dependencies
run: npm ci --prefer-offline --no-audit
- name: Set up Gradle
uses: gradle/actions/setup-gradle@v3
- name: Gradle build
run: ./gradlew build
- name: Run website tests
run: npm run test --if-present
- name: Build website
run: npm run build
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build
- name: Install EnhanceDocs CLI
uses: enhancedocs/[email protected]
with:
api-key: ${{ secrets.ENHANCEDOCS_API_KEY }}
- name: Update Docs
run: enhancedocs alpha sources web --project ${{ secrets.ENHANCEDOCS_PROJECT_ID }} https://arrow-kt.io