migrate to vite
All checks were successful
Deploy to Cloudflare Pages / deploy (push) Successful in 4m15s
All checks were successful
Deploy to Cloudflare Pages / deploy (push) Successful in 4m15s
This commit is contained in:
9
.gitea/workflows/deploy.yaml
Normal file → Executable file
9
.gitea/workflows/deploy.yaml
Normal file → Executable file
@@ -12,6 +12,7 @@ jobs:
|
||||
uses: https://github.com/actions/setup-node@v4
|
||||
with:
|
||||
node-version: 20
|
||||
cache: 'npm'
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
@@ -19,13 +20,13 @@ jobs:
|
||||
- name: Build
|
||||
run: npm run build
|
||||
env:
|
||||
NEXT_PUBLIC_API_BASE: ${{ secrets.API_BASE }}
|
||||
NEXT_PUBLIC_SERVER_ID: ${{ secrets.SERVER_ID }}
|
||||
NEXT_PUBLIC_ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
|
||||
VITE_API_BASE: ${{ secrets.API_BASE }}
|
||||
VITE_SERVER_ID: ${{ secrets.SERVER_ID }}
|
||||
VITE_ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
|
||||
|
||||
- name: Publish to Cloudflare
|
||||
uses: cloudflare/wrangler-action@v3
|
||||
with:
|
||||
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
||||
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
|
||||
command: pages deploy ./out --project-name=grid-gladiators-leaderboard
|
||||
command: pages deploy ./dist --project-name=grid-gladiators-leaderboard
|
||||
|
||||
Reference in New Issue
Block a user