🔥📦 Upgrade to v0.9.9 #12
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy Theme to Vercel | |
env: | |
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} | |
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- run: npm install | |
working-directory: theme | |
- run: npx vercel pull --yes --token=${{ secrets.VERCEL_TOKEN }} | |
working-directory: theme | |
# This one for build in github actions: | |
- run: npx vercel build --prod | |
working-directory: theme | |
- run: npx vercel deploy --prod --prebuilt --token=${{ secrets.VERCEL_TOKEN }} | |
working-directory: theme | |
# This one for build on vercel: | |
# - run: npx vercel deploy --prod --token=${{ secrets.VERCEL_TOKEN }} |