Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

# Preview only. Replaces Travis CI (Node 12 → next export → gh-pages).
# Do not deploy to Cloudflare Pages production or attach kylecesmat.com
# until Kyle has previewed this PR and explicitly approved.
# Build + check + artifact only. Replaces Travis CI (Node 12 → next export → gh-pages).
# Deploy lives in deploy.yml. Do not attach kylecesmat.com / custom domain
# until Kyle explicitly approves the apex cutover.
jobs:
build:
name: Build
Expand Down
48 changes: 48 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Deploy

on:
pull_request:
push:
branches: [master]

concurrency:
group: deploy-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

# Production alias tracks master. PR pushes are preview-only.
# No custom domain / apex cutover until explicitly approved.
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
permissions:
contents: read
deployments: write
pull-requests: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: npm
- run: npm ci
- run: npm run check
- run: npm run build
- name: Deploy to Cloudflare Pages
id: deploy
uses: cloudflare/wrangler-action@v4
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
command: pages deploy dist --project-name=kylecesmat
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
- name: Write deployment URLs
env:
DEPLOYMENT_URL: ${{ steps.deploy.outputs.deployment-url }}
DEPLOYMENT_ALIAS_URL: ${{ steps.deploy.outputs.pages-deployment-alias-url }}
run: |
{
echo "## Cloudflare Pages"
echo "- Deployment URL: ${DEPLOYMENT_URL}"
echo "- Alias URL: ${DEPLOYMENT_ALIAS_URL}"
} >> "$GITHUB_STEP_SUMMARY"
Loading