-
Notifications
You must be signed in to change notification settings - Fork 807
Expand file tree
/
Copy pathcode-deploy-producition-quick.yml
More file actions
38 lines (36 loc) · 1.21 KB
/
code-deploy-producition-quick.yml
File metadata and controls
38 lines (36 loc) · 1.21 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
name: '[CODE] Deploy production website (new data only)'
on:
push:
branches: [main]
paths:
- react-native-libraries.json
jobs:
build:
permissions:
contents: read
runs-on: ubuntu-latest
environment:
name: production
url: https://reactnative.directory
steps:
- uses: actions/checkout@v6
- name: Detect changed paths
uses: dorny/paths-filter@v3
id: filter
with:
predicate-quantifier: 'every'
filters: |
only_data_changed:
- react-native-libraries.json
- name: Use Bun
uses: oven-sh/setup-bun@v2
- name: Deploy
if: ${{ steps.filter.outputs.only_data_changed == 'true' }}
shell: bash
run: bunx vercel --force --token "$VERCEL_TOKEN" --prod --local-config ./vercel-quick.json
env:
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
BLOB_READ_WRITE_TOKEN: ${{ secrets.BLOB_READ_WRITE_TOKEN }}
# https://spectrum.chat/zeit/now/solved-project-linking-and-ci-cd-pipelines~5e6eb62a-9d56-47ac-9e32-0d973a523787
VERCEL_ORG_ID: 'team_IsLEAhLb9cZj6y1Bud9XYmeK'
VERCEL_PROJECT_ID: 'QmecQ8hTu4DUHv6js5U8L9pJ9vp54mg1bmRLWaS5RZCyt4'