-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (32 loc) · 1000 Bytes
/
Copy pathdevelop.yml
File metadata and controls
37 lines (32 loc) · 1000 Bytes
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
name: Develop Environment
# Workflow para deploy do ambiente de desenvolvimento
# Executado quando há push na branch develop
# Realiza testes, linting, build e deploy para Vercel (ambiente develop)
env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
on:
push:
branches:
- develop
jobs:
test-and-lint:
name: Develop - Test & Lint
uses: ./.github/workflows/reusable-test-and-lint.yml
with:
node-version: "22.x"
deploy-develop:
name: Develop - Deploy to Vercel
needs: test-and-lint
# ✅ CORREÇÃO: Aplicando o tutorial
# 'if:' sem aspas externas
if: needs.test-and-lint.outputs.code-changed == 'true'
uses: ./.github/workflows/reusable-deploy-vercel.yml
with:
environment: Develop
vercel-environment: preview
ref: ${{ github.ref }}
prebuilt: true
secrets:
vercel-token: ${{ secrets.VERCEL_TOKEN }}
github-token: ${{ secrets.GITHUB_TOKEN }}