Skip to content

Commit d52322a

Browse files
committed
chore: create dev branch
1 parent 3e4acaa commit d52322a

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

.github/workflows/s3-deploy.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ name: Update S3 deploy
33
on:
44
push:
55
branches:
6-
- "master"
6+
- "main"
7+
- "dev"
78
schedule:
89
- cron: "0 0 1 1 *"
910
workflow_dispatch:
@@ -31,7 +32,8 @@ jobs:
3132
- name: Build pages
3233
uses: Exabyte-io/action-mkdocs-build@main
3334

34-
- name: S3 Deploy
35+
- name: Deploy to Production (dev branch, old docs)
36+
if: github.ref == 'refs/heads/dev'
3537
uses: Reggionick/s3-deploy@v4
3638
with:
3739
folder: site
@@ -41,3 +43,15 @@ jobs:
4143
invalidation: /*
4244
no-cache: true
4345
private: true
46+
47+
- name: Deploy to Development (main branch, new docs)
48+
if: github.ref == 'refs/heads/main'
49+
uses: Reggionick/s3-deploy@v4
50+
with:
51+
folder: site
52+
bucket: docs-new.mat3ra.com
53+
bucket-region: ${{ secrets.S3_LOCATION_1 }}
54+
dist-id: ${{ secrets.CLOUDFRONT_DEV_DISTRIBUTION_ID_1 }}
55+
invalidation: /*
56+
no-cache: true
57+
private: true

0 commit comments

Comments
 (0)