Skip to content

refactor(LinkCard): improve type safety for urls prop #6

refactor(LinkCard): improve type safety for urls prop

refactor(LinkCard): improve type safety for urls prop #6

name: Deploy Staging
on:
push:
branches: [develop]
concurrency:
group: staging-deploy
cancel-in-progress: true
jobs:
deploy-staging:
name: Deploy to Cloudflare Workers (Staging)
runs-on: ubuntu-latest
permissions:
contents: read
deployments: write
environment:
name: staging
url: https://staging.aicodingstack.io
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: '22'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Run CI tests
run: npm run test:ci
- name: Build with OpenNext
run: npm run build
env:
BUILD_TIME: ${{ github.event.head_commit.timestamp }}
- name: Deploy to Staging
run: npx --no-install opennextjs-cloudflare deploy --env staging
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
- name: Deployment summary
run: |
echo "### Staging Deployment" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "- **URL:** https://staging.aicodingstack.io" >> $GITHUB_STEP_SUMMARY
echo "- **Commit:** ${{ github.sha }}" >> $GITHUB_STEP_SUMMARY
echo "- **Time:** $(date -u '+%Y-%m-%d %H:%M:%S UTC')" >> $GITHUB_STEP_SUMMARY