-
Notifications
You must be signed in to change notification settings - Fork 4
60 lines (49 loc) · 2.4 KB
/
deploy.yml
File metadata and controls
60 lines (49 loc) · 2.4 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
name: Deploy to GitHub Pages
on:
push:
branches:
- master
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: pages
cancel-in-progress: true
jobs:
deploy:
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
- run: bun install
- name: Bundle global scripts for browser
run: |
mkdir -p dist/libertine dist/bibhtml
cp -r index.html overview.html cdn-starter.html cdn-starter-explicit-imports.html cdn-starter-implicit-imports.html local-file-starter.html changelog.mjs celine/ libertine/ bibhtml/ static/ og.png dist/
bun build global.mjs --outfile dist/global.mjs --target browser
bun build libertine/global.mjs --outfile dist/libertine/global.mjs --target browser
bun build bibhtml/global.mjs --outfile dist/bibhtml/global.mjs --target browser
bun build bibhtml/mod.ts --outfile dist/bibhtml/mod.js --target browser
mkdir -p dist/local-file-starter/celine
mkdir -p dist/local-file-starter/libertine/fonts/Libertinus/documentation
mkdir -p dist/local-file-starter/libertine/fonts/Libertinus/static/WOFF2
mkdir -p dist/local-file-starter/libertine/fonts
cp local-file-starter.html dist/local-file-starter/index.html
cp celine/celine.bundle.mjs celine/cell.css dist/local-file-starter/celine/
cp libertine/libertine.css dist/local-file-starter/libertine/
cp libertine/fonts/FontWithASyntaxHighlighter-Regular.woff2 libertine/fonts/FontWithASyntaxHighlighterLightOwl-Regular.woff2 dist/local-file-starter/libertine/fonts/
mkdir -p dist/local-file-starter/libertine/fonts/dejavu
cp libertine/fonts/dejavu/* dist/local-file-starter/libertine/fonts/dejavu/
cp libertine/fonts/Libertinus/documentation/libertinus.css dist/local-file-starter/libertine/fonts/Libertinus/documentation/
cp libertine/fonts/Libertinus/static/WOFF2/*.woff2 dist/local-file-starter/libertine/fonts/Libertinus/static/WOFF2/
(cd dist && zip -r local-file-starter.zip local-file-starter)
- uses: actions/configure-pages@v5
- uses: actions/upload-pages-artifact@v3
with:
path: dist
- id: deployment
uses: actions/deploy-pages@v4