-
Notifications
You must be signed in to change notification settings - Fork 6
63 lines (52 loc) · 1.83 KB
/
publish-docs.yml
File metadata and controls
63 lines (52 loc) · 1.83 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
58
59
60
61
62
63
name: Publish Docs
on:
push:
branches:
- master
paths:
- 'docs/**'
workflow_dispatch:
jobs:
publish-docs:
name: Transform and publish documentation
runs-on: ubuntu-latest
env:
ASF_ARCHIVE: https://archive.apache.org/dist/
JENA_VERSION: 6.0.0
steps:
- name: Checkout LinkedDataHub-Apps
uses: actions/checkout@v4
- name: Set up Java 21
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: '21'
- name: Install Linux packages
run: sudo apt-get update && sudo apt-get install -y xmlstarlet
- name: Download Apache Jena
run: |
curl -sS --fail \
"${{ env.ASF_ARCHIVE }}jena/binaries/apache-jena-${{ env.JENA_VERSION }}.tar.gz" \
-o "${{ runner.temp }}/jena.tar.gz"
- name: Unpack Jena
run: tar -zxf jena.tar.gz
working-directory: ${{ runner.temp }}
- name: Add Jena bin to PATH
run: echo "${{ runner.temp }}/apache-jena-${{ env.JENA_VERSION }}/bin" >> $GITHUB_PATH
- name: Pull Saxon Docker image
run: docker pull atomgraph/saxon
- name: Run documentation transformation
run: ./ttl-to-html.sh
working-directory: docs
- name: Deploy to gh-pages
uses: peaceiris/actions-gh-pages@v4
with:
personal_token: ${{ secrets.GH_PAGES_TOKEN }}
external_repository: AtomGraph/LinkedDataHub
publish_branch: gh-pages
publish_dir: docs/html
destination_dir: linkeddatahub/docs
keep_files: true
user_name: 'github-actions[bot]'
user_email: 'github-actions[bot]@users.noreply.github.com'
commit_message: 'Update docs from LinkedDataHub-Apps@${{ github.sha }}'