Skip to content

Commit 38591c2

Browse files
committed
ci: try uploading production data to S3 instead of github pages
1 parent 93d1909 commit 38591c2

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

.github/workflows/deploy.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ on:
44
push:
55
branches:
66
- master
7+
pull_request:
8+
branches: [master]
79
# Allows you to run this workflow manually from the Actions tab
810
workflow_dispatch:
911

@@ -30,10 +32,17 @@ jobs:
3032
env:
3133
DOCUSAURUS_URL: https://testplane.io
3234
DOCUSAURUS_BASE_URL: /
33-
- name: Upload artifact
34-
uses: actions/upload-pages-artifact@v3
35+
- name: Deploy website to S3 production
36+
uses: jakejarvis/[email protected]
3537
with:
36-
path: ./build
38+
args: --acl public-read --follow-symlinks
39+
env:
40+
AWS_S3_BUCKET: testplane-io
41+
AWS_ACCESS_KEY_ID: ${{ secrets.S3_PRODUCTION_ACCESS_KEY_ID }}
42+
AWS_SECRET_ACCESS_KEY: ${{ secrets.S3_PRODUCTION_SECRET_ACCESS_KEY }}
43+
AWS_S3_ENDPOINT: https://s3.yandexcloud.net/
44+
SOURCE_DIR: "build"
45+
DEST_DIR: "/"
3746

3847
# Deployment job
3948
deploy:

0 commit comments

Comments
 (0)