File tree Expand file tree Collapse file tree 1 file changed +10
-15
lines changed Expand file tree Collapse file tree 1 file changed +10
-15
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ permissions:
1616jobs :
1717 # Build job
1818 build :
19+ environment : CI
1920 runs-on : self-hosted-arc
2021 steps :
2122 - uses : actions/checkout@v4
@@ -30,19 +31,13 @@ jobs:
3031 env :
3132 DOCUSAURUS_URL : https://testplane.io
3233 DOCUSAURUS_BASE_URL : /
33- - name : Upload artifact
34- uses : actions/upload-pages-artifact@v3
34+ - name : Deploy website to S3 production
35+ uses :
jakejarvis/[email protected] 3536 with :
36- path : ./build
37-
38- # Deployment job
39- deploy :
40- environment :
41- name : github-pages
42- url : ${{ steps.deployment.outputs.page_url }}
43- runs-on : self-hosted-arc
44- needs : build
45- steps :
46- - name : Deploy to GitHub Pages
47- id : deployment
48- uses : actions/deploy-pages@v4
37+ args : --acl public-read --follow-symlinks
38+ env :
39+ AWS_S3_BUCKET : testplane.io
40+ AWS_ACCESS_KEY_ID : ${{ secrets.S3_PRODUCTION_ACCESS_KEY_ID }}
41+ AWS_SECRET_ACCESS_KEY : ${{ secrets.S3_PRODUCTION_SECRET_ACCESS_KEY }}
42+ AWS_S3_ENDPOINT : https://s3.yandexcloud.net/
43+ SOURCE_DIR : " build"
You can’t perform that action at this time.
0 commit comments