File tree Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,8 @@ name: Update S3 deploy
33on :
44 push :
55 branches :
6- - " master"
6+ - " main"
7+ - " dev"
78 schedule :
89 - cron : " 0 0 1 1 *"
910 workflow_dispatch :
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
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
You can’t perform that action at this time.
0 commit comments