-
Notifications
You must be signed in to change notification settings - Fork 2
51 lines (40 loc) · 1.21 KB
/
site.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
name: Generate site + javadoc github pages
on:
push:
branches: [ "main" ]
workflow_dispatch:
permissions:
contents: read
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
build:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: 11
distribution: 'temurin'
cache: 'maven'
- name: 'Build dependency: fcs-sru-server@main'
run: |
git clone --depth 1 https://github.com/clarin-eric/fcs-sru-server.git
cd fcs-sru-server/
mvn -B install
- name: Generate site (project info and javadoc)
run: mvn -B clean site
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: './target/site'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1