-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (53 loc) · 1.85 KB
/
pages.yml
File metadata and controls
59 lines (53 loc) · 1.85 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
name: Deploy installer to Pages
# install.sh を GitHub Pages (dl.basex.jp) で配信する。
# 配信仕様: docs/developer/installer-hosting.md
# リポジトリ全体は晒さず、install.sh のみを成果物として公開する。
on:
push:
branches: [main]
paths:
- install.sh
- .github/workflows/pages.yml
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
# Node.js 20 で動く JS アクションの deprecation 警告 (2026-06-16 以降は Node 24 が
# 既定) を回避するため、ランナーで Node 24 実行を強制する。
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true"
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
- name: Assemble site (install.sh only)
run: |
mkdir -p _site
cp install.sh _site/i # 配信パス (https://dl.basex.jp/i)
echo 'dl.basex.jp' > _site/CNAME
cat > _site/index.html <<'HTML'
<!doctype html>
<html lang="ja">
<head><meta charset="utf-8"><title>devbase installer</title></head>
<body style="font-family:system-ui;max-width:42rem;margin:3rem auto;padding:0 1rem">
<h1>devbase installer</h1>
<p>ワンライナーインストール:</p>
<pre><code>curl -fsSL https://dl.basex.jp/i | bash</code></pre>
<p>ソース: <a href="https://github.com/devbasex/devbase">github.com/devbasex/devbase</a></p>
</body>
</html>
HTML
- uses: actions/configure-pages@v5
- uses: actions/upload-pages-artifact@v3
with:
path: _site
- id: deployment
uses: actions/deploy-pages@v4