-
Notifications
You must be signed in to change notification settings - Fork 2
57 lines (51 loc) · 1.91 KB
/
diff.yml
File metadata and controls
57 lines (51 loc) · 1.91 KB
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
# This is a basic workflow that is manually triggered
name: Diff_Documents
# Controls when the action will run. Workflow runs when manually triggered using the UI
# or API.
on: [workflow_dispatch]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
build-project:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: Checkout project and transforms
uses: actions/checkout@v2
with:
submodules: true
- name: Set up Python 3
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install lib
run: sudo apt-get install -y xsltproc
- name: Convert XML to HTML
run: make
- name: Setup Java JDK
uses: actions/setup-java@v1.4.3
with:
java-version: 1.8
- name: Get DaisyDiff
run: wget -O- https://github.com/AndroidKitKat/ExecuteDaisy/archive/master.zip | jar -x
- name: Make tmp dir
run: mkdir tmp
- name: Diff against 2 Days ago
run: TMP=tmp DAISY_DIR=ExecuteDaisy-master make little-diff
- name: Diff against specified versions
run: DAISY_DIR=ExecuteDaisy-master make diff
- name: Make a directory listing
run: >
cd output;
(echo "<html><head><title>PP-Template</title></head><body>";
date;
echo "<br/><ol>";
for aa in $(find . -name '*.html'); do
echo "<li><a href='$aa'>$aa</a></li>";
done;
echo "</ol></body></html>") > index.html
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@4.0.0
with:
branch: gh-pages # The branch the action should deploy to.
folder: output # The folder the action should deploy.