Skip to content

Commit

Permalink
switch to cf pages
Browse files Browse the repository at this point in the history
  • Loading branch information
gxskpo committed Nov 10, 2024
1 parent 0e26651 commit 8d8a4b4
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions .github/workflows/vercel_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@ on:
branches:
- main
env:
PROJECT_NAME: "portfolio"
CARGO_TERM_COLOR: always
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
jobs:
DEPLOY:
runs-on: ubuntu-latest
Expand All @@ -31,14 +30,11 @@ jobs:
run: ./trunk build --release

- name: Install Vercel CLI
run: npm i -g vercel@latest

- name: Pull vercel info
run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}
run: npm i -g vercel@latest

- name: Deploy
id: deployment
working-directory: ./dist
run: |
vercel deploy --prod --token=${{ secrets.VERCEL_TOKEN }} >> $GITHUB_STEP_SUMMARY
echo $GITHUB_STEP_SUMMARY
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
command: pages publish dist/ --project-name "${{ env.PROJECT_NAME }}"

0 comments on commit 8d8a4b4

Please sign in to comment.