update: format likes section for consistency in personal profiles #156
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: Cloudflare Pages | |
| on: | |
| push: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| name: Deploy | |
| environment: production | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@v5 | |
| with: | |
| run_install: false | |
| - name: Install Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: 24 | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Install Chrome | |
| run: | | |
| CHROME_PATH=$(pnpm install:chrome 2>&1 | grep "^chrome@" | head -1 | awk '{print $2}') | |
| echo "PUPPETEER_EXECUTABLE_PATH=$CHROME_PATH" >> $GITHUB_ENV | |
| - name: Build | |
| run: pnpm build | |
| env: | |
| TZ: 'Asia/Tokyo' | |
| CF_BEACON_TOKEN: ${{ secrets.CF_BEACON_TOKEN }} | |
| - name: Publish | |
| uses: cloudflare/wrangler-action@v3 | |
| with: | |
| apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
| command: pages deploy ./dist --project-name=blog --commit-dirty=true |