feat(shell): bin/rc 新設で現在シェル有効化を統一し devbase shell-rc を廃止 (PLAN31_1) (… #6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |