-
Notifications
You must be signed in to change notification settings - Fork 50
49 lines (37 loc) · 1.12 KB
/
docs.yaml
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
name: Build and deploy docs and website
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * *'
jobs:
build:
name: Deploy docs and website
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '21'
cache: 'maven'
- name: Build with Maven
run: ./mvnw -B verify --file pom.xml
- name: Setup Graphviz
uses: ts-graphviz/setup-graphviz@v1
- name: Create settings.xml
uses: whelk-io/maven-settings-xml-action@v12
with:
servers: '[{ "id": "salespoint", "username": "${env.FTP_USER}", "password": "${env.FTP_PASSWORD}" }]'
- name: Add TU Dresden to known hosts
env:
KNOWN_HOSTS: ${{secrets.KNOWN_HOSTS}}
run: |
mkdir -p ~/.ssh/
echo "$KNOWN_HOSTS" > ~/.ssh/known_hosts
- name: Deploy to server
env:
FTP_USER: ${{ secrets.FTP_USER }}
FTP_PASSWORD: ${{ secrets.FTP_PASSWORD }}
run: ./mvnw -Pdocs -B package site:deploy --file pom.xml