forked from corosolto/client
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (35 loc) · 1.15 KB
/
Copy pathdeploy-prod.yml
File metadata and controls
38 lines (35 loc) · 1.15 KB
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
# Fallback manual: produção normal publica a main pela integração Git da Vercel.
name: deploy-prod
on:
workflow_dispatch:
inputs:
tag:
description: 'Tag a publicar (ex.: v2.0.0-alpha.32)'
required: true
type: string
permissions:
contents: read
concurrency:
group: deploy-prod
cancel-in-progress: false
jobs:
prod:
runs-on: ubuntu-latest
timeout-minutes: 20
environment: production
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262
with:
ref: refs/tags/${{ github.event.inputs.tag }}
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020
with: { node-version: 22 }
- run: npm i -g vercel@58.9.0
- name: build e deploy de produção
env:
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
run: |
vercel pull --yes --environment=production --token "$VERCEL_TOKEN"
vercel build --prod --token "$VERCEL_TOKEN"
vercel deploy --prebuilt --prod --token "$VERCEL_TOKEN"