File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments