Skip to content

Commit e654db1

Browse files
committed
Try automatically deploying the documentation.
Assuming I understood GitHub's documentation correctly, this should automatically deploy the Maven-built website to incatools.github.io/odk/robot-plugin/.
1 parent 97ced24 commit e654db1

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/docs.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Build and publish the documentation
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
- name: Set up JDK 17
13+
uses: actions/setup-java@v4
14+
with:
15+
java-version: '17'
16+
distribution: 'temurin'
17+
cache: maven
18+
- name: Build the site
19+
run: mvn -B site
20+
- name: Upload the site for publication
21+
id: deployment
22+
uses: actions/upload-pages-artifact@v3
23+
with:
24+
path: target/site/
25+
26+
deploy:
27+
environment:
28+
name: github-pages
29+
url: ${{ steps.deployment.outputs.page_url }}
30+
runs-on: ubuntu-latest
31+
needs: build
32+
steps:
33+
- name: Deploy the site
34+
id: deployment
35+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)