Skip to content

Commit c09e6d4

Browse files
takemi-ohamaclaude
andcommitted
ci(pages): install.sh を GitHub Pages (dl.basex.jp) で配信 (PLAN31_1)
install.sh のみを成果物として公開する Pages デプロイワークフローを追加。 main への push (install.sh / pages.yml 変更時) で自動デプロイする。 配信仕様: docs/developer/installer-hosting.md Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 7556f52 commit c09e6d4

1 file changed

Lines changed: 54 additions & 0 deletions

File tree

.github/workflows/pages.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: Deploy installer to Pages
2+
3+
# install.sh を GitHub Pages (dl.basex.jp) で配信する。
4+
# 配信仕様: docs/developer/installer-hosting.md
5+
# リポジトリ全体は晒さず、install.sh のみを成果物として公開する。
6+
7+
on:
8+
push:
9+
branches: [main]
10+
paths:
11+
- install.sh
12+
- .github/workflows/pages.yml
13+
workflow_dispatch:
14+
15+
permissions:
16+
contents: read
17+
pages: write
18+
id-token: write
19+
20+
concurrency:
21+
group: pages
22+
cancel-in-progress: true
23+
24+
jobs:
25+
deploy:
26+
runs-on: ubuntu-latest
27+
environment:
28+
name: github-pages
29+
url: ${{ steps.deployment.outputs.page_url }}
30+
steps:
31+
- uses: actions/checkout@v4
32+
- name: Assemble site (install.sh only)
33+
run: |
34+
mkdir -p _site
35+
cp install.sh _site/install.sh
36+
echo 'dl.basex.jp' > _site/CNAME
37+
cat > _site/index.html <<'HTML'
38+
<!doctype html>
39+
<html lang="ja">
40+
<head><meta charset="utf-8"><title>devbase installer</title></head>
41+
<body style="font-family:system-ui;max-width:42rem;margin:3rem auto;padding:0 1rem">
42+
<h1>devbase installer</h1>
43+
<p>ワンライナーインストール:</p>
44+
<pre><code>curl -fsSL https://dl.basex.jp/install.sh | bash</code></pre>
45+
<p>ソース: <a href="https://github.com/devbasex/devbase">github.com/devbasex/devbase</a></p>
46+
</body>
47+
</html>
48+
HTML
49+
- uses: actions/configure-pages@v5
50+
- uses: actions/upload-pages-artifact@v3
51+
with:
52+
path: _site
53+
- id: deployment
54+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)