extend crt visual language: scan-line dividers, footer signal strip, … #16
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: | |
| push: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| # 设置 GITHUB_TOKEN 权限以允许部署到 GitHub Pages | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| # 只允许一个并发部署,跳过排队中的运行 | |
| # 但不取消正在进行的运行,以免中断生产部署 | |
| 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: | |
| node-version: "20" | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Build with Astro | |
| run: npm run build | |
| - name: Run Pagefind (build search index) | |
| run: npx pagefind --site dist --glob "**/*.html" | |
| - 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 | |
| # ============================================================ | |
| # 部署前置设置(只需做一次): | |
| # | |
| # 1. 进入你的 GitHub 仓库 → Settings → Pages | |
| # 2. Source 选择 "GitHub Actions" | |
| # 3. 推送到 main 分支即可自动触发部署 | |
| # | |
| # 注意:首次部署可能需要几分钟。 | |
| # ============================================================ |