This repository has been archived by the owner on Sep 11, 2024. It is now read-only.
forked from FIRST-Tech-Challenge/FtcRobotController
-
Notifications
You must be signed in to change notification settings - Fork 4
106 lines (91 loc) · 2.59 KB
/
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
name: Deploy static content to Pages
on:
workflow_dispatch:
push:
branches:
- master
jobs:
build-javadoc:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: 17
distribution: temurin
cache: gradle
- name: Build JavaDoc using Dokka
run: |
mkdir ./javadoc
./gradlew :TeamCode:dokkaHtml --no-daemon
mv ./TeamCode/build/dokka/html ./javadoc
- name: Upload Build Artifact
uses: actions/upload-artifact@v4
with:
path: ./javadoc/html
name: javadoc
build-controldoc:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: 17
distribution: temurin
cache: gradle
- name: Build APK with Gradle
run: ./gradlew assembleDebug --scan --stacktrace --info --no-daemon -x test
- name: Build ControlDoc
run: |
chmod +x ./buildControlDoc.sh
./buildControlDoc.sh TeamCode/build/outputs/apk/debug/TeamCode-debug.apk
- name: Upload build artifact
uses: actions/upload-artifact@v4
with:
name: controldoc
path: doc-out/
deploy:
needs:
- build-javadoc
- build-controldoc
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
# Only allow one concurrent deployment
concurrency:
group: pages-deploy
cancel-in-progress: false
steps:
- name: Get build artifact (javadoc)
uses: actions/download-artifact@v4
with:
name: javadoc
path: javadoc
- name: Get build artifact (controldoc)
uses: actions/download-artifact@v4
with:
name: controldoc
path: controldoc
- name: Move controldoc to javadoc
run: |
mv controldoc javadoc/controls
- name: Upload Pages build artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./javadoc
retention-days: 90
- name: Configure Pages
uses: actions/configure-pages@v5
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4