-
-
Notifications
You must be signed in to change notification settings - Fork 21
78 lines (71 loc) · 2.4 KB
/
awsci.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
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: AWS CI
on:
push:
branches:
- "*v[0-9].[0-9].[0-9]"
- "main"
jobs:
build_and_deploy_docs:
environment: s3-access
runs-on: ubuntu-latest
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
steps:
- uses: actions/checkout@v2
- name: Set Node.js 16.x
uses: actions/setup-node@v1
with:
node-version: 16.x
- name: Setup Python
uses: actions/[email protected]
- name: Install Sphinx
run: pip install -U sphinx sphinx-rtd-theme recommonmark
- name: Build docs
run: cd docs; make html
- name: Upload to S3
uses: reggionick/s3-deploy@v3
with:
# aws bucket name
bucket: docs.condution.com
# directory to upload
folder: docs/build/html
# bucket location
bucket-region: us-east-2
build_and_deploy_app:
environment: s3-access
runs-on: ubuntu-latest
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
steps:
- uses: actions/checkout@v2
- name: Update submodules
run: git submodule init; git submodule update
- name: Set Node.js 16.x
uses: actions/setup-node@v1
with:
node-version: 16.x
- name: Install Ionic
run: yarn global add @ionic/cli
- name: Install dependencies
run: yarn
- name: Source config
run: ./config.sh
- name: Decrypt secret
run: ./decrypt.sh
env:
SECRETS_PASSPHRASE: ${{ secrets.ENCRYPTION_KEY }}
- name: Build app
run: CI=false yarn ionic:dist
- name: Upload to S3
uses: reggionick/s3-deploy@v3
with:
# aws bucket name
bucket: beta.condution.com
# directory to upload
folder: build
# bucket location
bucket-region: us-east-2