Skip to content

Commit e266242

Browse files
committed
Add github pages CI
1 parent 22cd672 commit e266242

File tree

2 files changed

+63
-0
lines changed

2 files changed

+63
-0
lines changed

.github/workflows/site.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Generate site + javadoc github pages
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: read
10+
pages: write # to deploy to Pages
11+
id-token: write # to verify the deployment originates from an appropriate source
12+
13+
concurrency:
14+
group: "pages"
15+
cancel-in-progress: true
16+
17+
jobs:
18+
build:
19+
environment:
20+
name: github-pages
21+
url: ${{ steps.deployment.outputs.page_url }}
22+
23+
runs-on: ubuntu-latest
24+
25+
steps:
26+
- uses: actions/checkout@v4
27+
28+
- name: Set up JDK 11
29+
uses: actions/setup-java@v4
30+
with:
31+
java-version: 11
32+
distribution: 'temurin'
33+
cache: 'maven'
34+
35+
- name: 'Build dependency: fcs-ql@main'
36+
run: |
37+
git clone --depth 1 https://github.com/clarin-eric/fcs-ql.git
38+
cd fcs-ql/
39+
mvn -B install
40+
41+
- name: Generate site (project info and javadoc)
42+
run: mvn -B clean site
43+
44+
- name: Upload artifact
45+
uses: actions/upload-pages-artifact@v3
46+
with:
47+
path: './target/site'
48+
49+
- name: Deploy to GitHub Pages
50+
id: deployment
51+
uses: actions/deploy-pages@v4

pom.xml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,18 @@
149149
<artifactId>maven-deploy-plugin</artifactId>
150150
<version>3.1.4</version>
151151
</plugin>
152+
153+
<plugin>
154+
<groupId>org.apache.maven.plugins</groupId>
155+
<artifactId>maven-release-plugin</artifactId>
156+
<version>3.1.1</version>
157+
</plugin>
158+
159+
<plugin>
160+
<groupId>org.apache.maven.plugins</groupId>
161+
<artifactId>maven-site-plugin</artifactId>
162+
<version>3.21.0</version>
163+
</plugin>
152164
</plugins>
153165
</build>
154166

0 commit comments

Comments
 (0)