Skip to content

we try to roll

we try to roll #131

Workflow file for this run

# 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/setup-python@v2.2.1
- 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