-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (55 loc) · 2.34 KB
/
prod.yml
File metadata and controls
60 lines (55 loc) · 2.34 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: Build Storybook and deploy to Github Pages
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [15.0.1] # Test other node versions, e.g.: [12.16.1, 15.x, 16.x]
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install and Build components 🔧
run: |
yarn install --frozen-lockfile
# TODO not needed to build after install? yarn build
# TODO - name: Validate ☑️
# run: yarn validate
# env:
# CI: false # true -> fails on warning
- name: Build Storybook 📚
run: yarn nx run demo:build-storybook
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@4.1.5
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: dist/storybook/demo # The folder the action should deploy.
CLEAN: true # Automatically remove deleted files from the deploy branch
- name: Build Portfolio Micro App
run: yarn nx run portfolio:build
- name: Deploy Portfolio Micro App 🚀
uses: JamesIves/github-pages-deploy-action@4.1.5
with:
token: ${{ secrets.ACCESS_TOKEN }} # Access token from the Prod repo, set in Settings > Secrets
repository-name: code-star/nx-reference-portfolio
branch: gh-pages # The branch the action should deploy to.
folder: dist/apps/portfolio # The folder the action should deploy.
clean: true # Automatically remove deleted files from the deploy branch
- name: Build Shell Micro App
run: yarn nx run demo:build
- name: Deploy Shell Micro App 🚀
uses: JamesIves/github-pages-deploy-action@4.1.5
with:
token: ${{ secrets.ACCESS_TOKEN }} # Access token from the Prod repo, set in Settings > Secrets
repository-name: code-star/nx-reference-shell
branch: gh-pages # The branch the action should deploy to.
folder: dist/apps/demo # The folder the action should deploy.
clean: true # Automatically remove deleted files from the deploy branch