-
Notifications
You must be signed in to change notification settings - Fork 5
40 lines (35 loc) · 1.1 KB
/
demo-store.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Deploy demo store
on:
release:
workflow_dispatch:
env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_DEMO_STORE_PROJECT_ID }}
jobs:
preview:
runs-on: ubuntu-latest
environment:
name: production
steps:
# Check out master branch
- name: Checkout
uses: actions/checkout@master
with:
repository: 'statamic-rad-pack/shopify-demo'
# Downloads, configures and caches Node.js
- name: Setup node env
uses: actions/setup-node@v3
with:
node-version: 16
# Install all dependencies needed to build our documentation
- name: Install dependencies
run: yarn
# Pull vercel project info
- name: Vercel pull
run: yarn vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}
# Build for vercel output
- name: Vercel build
run: yarn vercel build --token=${{ secrets.VERCEL_TOKEN }}
# Deploy to vercel
- name: Vercel deploy
run: yarn vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }}