docs: Tailwind スライドが溢れる問題を修正(1枚→2枚に分割) #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 to GitHub Pages | |
| on: | |
| # main ブランチへの push で自動デプロイ | |
| push: | |
| branches: [main] | |
| # Actions タブから手動実行も可能 | |
| workflow_dispatch: | |
| # GitHub Pages へのデプロイに必要な権限 | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| # 同時に 1 つのデプロイのみ実行(進行中のものは完了させる) | |
| concurrency: | |
| group: "pages" | |
| cancel-in-progress: false | |
| jobs: | |
| build: | |
| name: Build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| # Astro 6 は Node 22.12+ が必須 | |
| node-version: 22 | |
| cache: npm | |
| # npm/cli#4828 回避: | |
| # コミット済み package-lock.json には生成した OS (macOS) 用の | |
| # ネイティブ依存しか実体エントリが無く、Linux の npm ci/install では | |
| # @rollup/rollup-linux-x64-gnu が入らずビルドが失敗する。 | |
| # CI ではロックファイルを作り直してから入れ、Linux 用バイナリを確実に取得する。 | |
| - name: Install dependencies | |
| run: | | |
| rm -f package-lock.json | |
| npm install | |
| - name: Build site | |
| run: npm run build | |
| - name: Upload Pages artifact | |
| uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: ./dist | |
| deploy: | |
| name: Deploy | |
| needs: build | |
| runs-on: ubuntu-latest | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| steps: | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v4 |