-
Notifications
You must be signed in to change notification settings - Fork 5
44 lines (37 loc) · 1.1 KB
/
pulls.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
name: Deploy S3 CI
on:
pull_request:
branches: [staging, main]
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
jobs:
run:
runs-on: ubuntu-latest
env:
AWS_ACCESS_KEY_ID: ${{ secrets.WEB_AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.WEB_AWS_SECRET_ACCESS_KEY }}
steps:
- uses: actions/checkout@v3
- uses: c-hive/gha-yarn-cache@v2
- name: Install dependencies
run: yarn
- name: Build
run: yarn build
- name: Move to docs folder
run: mv build blogdocs && mkdir -p build && mv blogdocs build/docs
- name: Deploy
uses: reggionick/s3-deploy@v3
with:
folder: build
bucket: tempweb.getdozer.io
bucket-region: ap-southeast-1
delete-removed: true
no-cache: true
private: false
filesToInclude: ".*/*,*/*,**"
- name: Comment PR
uses: thollander/actions-comment-pull-request@v2
with:
message: |
Deployed at http://tempweb.getdozer.io.s3-website-ap-southeast-1.amazonaws.com/docs