-
-
Notifications
You must be signed in to change notification settings - Fork 62
81 lines (69 loc) · 2.03 KB
/
testing.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
name: Build and deploy the testing website
on:
workflow_dispatch:
push:
branches:
- precice-v3
jobs:
build-deploy:
runs-on: ubuntu-20.04
steps:
- name: Checkout website
uses: actions/checkout@v2
with:
submodules: true
lfs: false
path: website
- name: Fetch - precice develop
uses: actions/checkout@v2
with:
repository: precice/precice
ref: develop
path: develop
- name: Fetch - precice main
uses: actions/checkout@v2
with:
repository: precice/precice
ref: main
path: main
- name: Patch doxyfiles
working-directory: website
run: doxygen/patch.sh
- name: Install dependencies
run: |
sudo apt-get -yyq update
sudo apt-get -yyq install doxygen graphviz plantuml
- name: Setup ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
working-directory: website
- name: Build website
working-directory: website
env:
JEKYLL_ENV: production
run: bundle exec jekyll build
- name: Build doxygen - develop
working-directory: develop
run: doxygen
env:
PLANTUML_JAR_PATH: /usr/share/plantuml/plantuml.jar
- name: Build doxygen - main
working-directory: main
run: doxygen
env:
PLANTUML_JAR_PATH: /usr/share/plantuml/plantuml.jar
- name: Assemble website
run: |
mv website/_site public
mv develop/docs/source-code-documentation/html public/doxygen/develop
mv main/docs/source-code-documentation/html public/doxygen/main
- name: List website files
run: find public
- name: Deploy to testing
uses: peaceiris/actions-gh-pages@v3
with:
personal_token: ${{ secrets.WEB_TESTING_TOKEN }}
publish_dir: ./public
external_repository: precice/website-testing
publish_branch: main