Update demo.yml

This commit is contained in:
luoxiao 2024-01-17 22:49:38 +08:00
parent 7181d90e72
commit 063b27b28c

View file

@ -6,7 +6,6 @@ on:
branches: branches:
- main - main
jobs: jobs:
deploy: deploy:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -17,10 +16,6 @@ jobs:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
with: with:
fetch-depth: 0 fetch-depth: 0
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 18
- name: Setup Rust - name: Setup Rust
uses: actions-rs/toolchain@v1 uses: actions-rs/toolchain@v1
with: with:
@ -36,8 +31,10 @@ jobs:
cd demo cd demo
trunk build --release trunk build --release
- name: Deploy - name: Deploy
run: npx vercel --token ${{ secrets.VERCEL_TOKEN }} --prod uses: amondnet/vercel-action@v20
env: with:
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }} vercel-token: ${{ secrets.VERCEL_TOKEN }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} vercel-org-id: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID }}
vercel-args: "--prod"
working-directory: demo/dist