-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (53 loc) · 1.91 KB
/
deploy.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# name: 'Deploy'
# env:
# VERCEL_ORD_ID: ${{ secrets.VERCEL_ORG_ID }}
# VERCEL_PRODUCT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
# on:
# pull_request:
# branches: [main]
# types: [closed]
# jobs:
# deploy-production:
# name: Deploy to production
# runs-on: ubuntu-latest
# if: github.event.pull_request.merged == true
# steps:
# - name: Cancel Previous Runs
# uses: styfle/[email protected]
# - name: Checkout Repo
# uses: actions/checkout@v3
# - name: Use Node.js
# uses: actions/setup-node@v3
# with:
# node-version: 16
# - name: Cache pnpm modules
# uses: actions/cache@v2
# with:
# path: ~/.pnpm-store
# key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
# restore-keys: |
# ${{ runner.os }}-
# - uses: pnpm/[email protected]
# with:
# version: 7.0.0
# run_install: true
# - name: Install Vercel CLI
# run: pnpm install --global vercel@latest
# - name: Pull Vercel Environment Information
# run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}
# - name: Build Project Artifacts
# run: vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}
# - name: Deploy Project Artifacts to Vercel
# run: vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }}
# - name: Build
# run: pnpm build
# - name: Set AWS credentials
# uses: aws-actions/configure-aws-credentials@v2
# with:
# aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
# aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
# aws-region: eu-west-1
# - name: Copy files to the production website with the AWS CLI
# run: |
# cd dist
# aws s3 sync --delete . s3://${{ secrets.BUCKET }}