fix(site): give Q3 audit-trail bullets breathing room when they wrap #53
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 site to Cloudflare Pages | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - "site/**" | |
| - ".github/workflows/deploy-site.yml" | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: deploy-site-${{ github.ref }} | |
| cancel-in-progress: false | |
| jobs: | |
| build-and-deploy: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 5 | |
| defaults: | |
| run: | |
| working-directory: site | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: 10 | |
| - name: Set up Node 22 | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "22" | |
| cache: pnpm | |
| cache-dependency-path: site/pnpm-lock.yaml | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Build site | |
| run: pnpm build | |
| - name: Type-check | |
| run: pnpm check | |
| - name: Capture single-line commit subject | |
| id: commit-subject | |
| # Cloudflare Pages' API rejects multi-line commit bodies as | |
| # "Invalid commit message, must be a valid UTF-8 string [code: | |
| # 8000111]" — has bitten this deploy twice. Wrangler's default | |
| # behaviour is to auto-fill --commit-message from `git log -1` | |
| # which sends the FULL message including body. Capture only | |
| # the subject (first line) here and pass it explicitly below. | |
| # Use ::set-output via $GITHUB_OUTPUT, escape any quotes that | |
| # could break the YAML interpolation. | |
| run: | | |
| subject=$(git log -1 --pretty=%s | tr -d '"' | head -c 100) | |
| echo "subject=${subject}" >> "$GITHUB_OUTPUT" | |
| working-directory: . | |
| - name: Deploy to Cloudflare Pages | |
| uses: cloudflare/wrangler-action@v3 | |
| with: | |
| apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
| accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | |
| # --commit-message MUST be passed explicitly. See the | |
| # "Capture single-line commit subject" step above for the | |
| # underlying Cloudflare API constraint. | |
| command: pages deploy dist --project-name=attestloop --branch=main --commit-hash=${{ github.sha }} --commit-message="${{ steps.commit-subject.outputs.subject }}" | |
| workingDirectory: site |