Skip to content

Add AGENTS.md → CLAUDE.md symlink for cross-agent compatibility #174

Add AGENTS.md → CLAUDE.md symlink for cross-agent compatibility

Add AGENTS.md → CLAUDE.md symlink for cross-agent compatibility #174

Workflow file for this run

name: Deploy to Cloudflare Pages
on:
push:
branches: [master]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
- run: npm install
- run: npx nuxt build
env:
NITRO_PRESET: cloudflare-pages
- name: Initialize D1 Schema
run: npx wrangler d1 execute phareim-rpg --file=database/schema.sql --remote
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
- uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
command: pages deploy dist --project-name=phareim-no
- name: Notify Sleeper
if: success()
env:
SLEEPER_API_KEY: ${{ secrets.SLEEPER_API_KEY }}
COMMIT_MESSAGE: ${{ github.event.head_commit.message }}
run: |
jq -n --arg body "$COMMIT_MESSAGE" '{title: "phareim.no deployed", body: $body}' \
| curl -s -X POST https://sleeper.phareim.no/tasks/notify \
-H "Authorization: Bearer $SLEEPER_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @-