Skip to content

Merge pull request #73 from 8base/navbar #61

Merge pull request #73 from 8base/navbar

Merge pull request #73 from 8base/navbar #61

Workflow file for this run

name: Deploy
on:
push:
branches:
- main
jobs:
deploy_aws:
runs-on: ubuntu-latest
steps:
- name: Git checkout
uses: actions/checkout@v2
- name: Setup node
uses: actions/setup-node@v2
with:
node-version: '16'
- name: Install Dependencies
run: |
yarn --frozen-lockfile
- name: Build
run: yarn build
- name: Sync to S3
run: |
aws s3 sync --delete ./build s3://docs.8base.com
aws cloudfront create-invalidation --distribution-id EZWU2FBHP41E9 --paths '/*'
env:
AWS_DEFAULT_REGION: us-east-1
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
CI: true