-
Notifications
You must be signed in to change notification settings - Fork 1
83 lines (66 loc) · 1.84 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
name: deploy-dev
on:
push:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
concurrency:
group: ${{ github.ref }}-deploy
cancel-in-progress: true
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/setup-node@v2
with:
node-version: "18"
cache: 'npm'
- name: Install
run: npm install
- name: Build App
run: npm run build
env:
NODE_OPTIONS: --max_old_space_size=16384
# - name: Configure AWS Credentials
# uses: aws-actions/configure-aws-credentials@v1
# with:
# aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
# aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
# aws-region: us-east-1
# - uses: jakejarvis/s3-sync-action@master
# with:
# args: --acl public-read --follow-symlinks --delete
# env:
# AWS_S3_BUCKET: BUCKET_NAME_HERE
# AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
# AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
# AWS_REGION: 'us-east-1'
# SOURCE_DIR: 'dist'
storybook:
runs-on: ubuntu-latest
concurrency:
group: ${{ github.ref }}-storybook
cancel-in-progress: true
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/setup-node@v2
with:
node-version: "18"
cache: 'npm'
- name: Install
run: npm install
- name: Build Storybook
run: npm run build-storybook
env:
NODE_OPTIONS: --max_old_space_size=16384
# - name: Deploy Storybook
# uses: chromaui/action@v1
# with:
# projectToken: TOKEN_HERE
# token: ${{ secrets.GITHUB_TOKEN }}
# storybookBuildDir: storybook-static