Skip to content

Commit 444d71a

Browse files
authored
ci: use self-hosted S3 for site deploy instead of github pages (#83)
1 parent 93d1909 commit 444d71a

File tree

1 file changed

+10
-15
lines changed

1 file changed

+10
-15
lines changed

.github/workflows/deploy.yml

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ permissions:
1616
jobs:
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"

0 commit comments

Comments
 (0)