wip
This commit is contained in:
parent
d955531027
commit
669bf6827e
1 changed files with 12 additions and 5 deletions
17
.github/workflows/deploy-prod.yml
vendored
17
.github/workflows/deploy-prod.yml
vendored
|
@ -6,7 +6,7 @@ on:
|
||||||
type: choice
|
type: choice
|
||||||
required: true
|
required: true
|
||||||
options:
|
options:
|
||||||
- slack
|
- saleor-app-slack
|
||||||
description: What app to deploy
|
description: What app to deploy
|
||||||
jobs:
|
jobs:
|
||||||
prepare:
|
prepare:
|
||||||
|
@ -22,14 +22,21 @@ jobs:
|
||||||
cache: "pnpm"
|
cache: "pnpm"
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: pnpm install
|
run: pnpm install
|
||||||
- name: Check linters
|
- name: Install Vercel CLI
|
||||||
run: pnpm build
|
run: npm i -g vercel
|
||||||
|
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
needs: [prepare]
|
needs: [prepare]
|
||||||
environment: Prod
|
environment: Prod
|
||||||
runs-on: ubuntu-latests
|
runs-on: ubuntu-latest
|
||||||
name: Deploy
|
name: Deploy
|
||||||
steps:
|
steps:
|
||||||
|
- name: Link
|
||||||
|
run: vercel link apps/${{inputs.app_name}}
|
||||||
|
- name: Pull env
|
||||||
|
run: vercel pull --environment=production
|
||||||
|
- name: Build
|
||||||
|
run: pnpm vercel build --prod --yes --token=${{ secrets.VERCEL_TOKEN }}
|
||||||
- name: Deploy to Vecel
|
- name: Deploy to Vecel
|
||||||
run: echo "TODO $TOKEN"
|
run: vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }}
|
||||||
|
|
Loading…
Reference in a new issue