-
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (36 loc) · 1.2 KB
/
deploy.yaml
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
name: Deploy
on: [push, pull_request]
jobs:
build_and_deploy:
name: Build and deploy
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- name: Set openssl legacy provider
run: echo "NODE_OPTIONS=--openssl-legacy-provider" >> $GITHUB_ENV
- id: install-aws-cli
uses: unfor19/install-aws-cli-action@v1
with:
version: 1 # default
verbose: true # default
arch: amd64 # allowed values: amd64, arm64
- name: Install yarn
uses: borales/actions-yarn@v3.0.0
with:
cmd: install
- name: docusaurus build
uses: borales/actions-yarn@v3.0.0
with:
cmd: build
- run: aws s3 sync --delete --acl public-read build s3://docs.billabear.com
shell: bash
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_DEFAULT_REGION: ${{ secrets.AWS_DEFAULT_REGION }}
- name: Set node options to empty string
run: echo "NODE_OPTIONS=\"\"" >> $GITHUB_ENV