-
Notifications
You must be signed in to change notification settings - Fork 231
43 lines (38 loc) · 1.24 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
name: Deploy website to S3
on:
push:
branches:
- master
concurrency:
group: deploy-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
if: github.repository == 'carbon-design-system/design-language-website'
runs-on: ubuntu-latest
steps:
- uses: fkirc/[email protected]
with:
github_token: ${{ github.token }}
- uses: actions/checkout@v2
- name: Use Node.js 18.x
uses: actions/setup-node@v2-beta
with:
node-version: 18.x
- name: Install packages
run: yarn install --frozen-lockfile --network-timeout 300000
- name: Build site
env:
NODE_OPTIONS: "--max_old_space_size=4096"
run: yarn build:prefix
- uses: jakejarvis/s3-sync-action@master
with:
args: --acl public-read --follow-symlinks --delete
env:
AWS_S3_BUCKET: ${{ secrets.COS_BUCKET }}
AWS_ACCESS_KEY_ID: ${{ secrets.COS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.COS_SECRET_ACCESS_KEY }}
AWS_REGION: ${{ secrets.COS_REGION }}
AWS_S3_ENDPOINT: https://${{ secrets.COS_ENDPOINT }}
SOURCE_DIR: 'public/design/language'
DEST_DIR: 'design/language'