-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (40 loc) · 1.53 KB
/
Copy pathdeploy-pages.yml
File metadata and controls
40 lines (40 loc) · 1.53 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
name: Deploy to GitHub Pages
on:
push:
branches: [master]
workflow_dispatch:
# allow the job to push to the gh-pages branch via GITHUB_TOKEN
permissions:
contents: write
# never run two deploys at once; a newer push supersedes an in-flight one
concurrency:
group: gh-pages
cancel-in-progress: true
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
- name: Install xmlstarlet (entity expansion in generate-sef.sh)
run: sudo apt-get update && sudo apt-get install -y xmlstarlet
- name: Build SEF (fresh dist/ from src/)
run: make sef
- name: Assemble static site
run: |
mkdir -p _site
cp index.html rdfa-editor.css overlay.css toolbar.css dialogs.css _site/
cp -r lib dist vocabs _site/
# core editor only: the LinkedDataHub-extended flavor (demo/ +
# its SEF) needs the content-negotiating dev server (serve.mjs)
# and is never deployed to Pages
rm -f _site/dist/ldh-editor.xsl.sef.json
- name: Publish to gh-pages branch
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./_site
publish_branch: gh-pages
force_orphan: true