Skip to content

Commit 5d40992

Browse files
committed
produciton environment
1 parent 8e91942 commit 5d40992

File tree

1 file changed

+1
-42
lines changed

1 file changed

+1
-42
lines changed

.github/workflows/build.yaml

Lines changed: 1 addition & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
test:
2121
name: Static Website Build
2222
runs-on: ubuntu-latest
23+
environment: production
2324
steps:
2425

2526
- name: Check out repository
@@ -43,45 +44,3 @@ jobs:
4344
echo "S3_BUCKET is '${{ secrets.S3_BUCKET }}'"
4445
echo "S3_BUCKET is '${{ vars.S3_BUCKET }}'"
4546
46-
47-
48-
- name: Pin react-docgen version
49-
run: yarn add -D [email protected]
50-
51-
- name: Install dependencies
52-
run: |
53-
yarn install
54-
55-
- name: Build Storybook
56-
run: |
57-
yarn run build:storybook
58-
59-
- name: Install rclone
60-
run: |
61-
curl https://rclone.org/install.sh | sudo bash
62-
63-
- name: Upload to S3
64-
env:
65-
S3_BUCKET: ${{ secrets.S3_BUCKET }}
66-
S3_PATH: ${{ secrets.S3_PATH }}
67-
S3_ENDPOINT: ${{ secrets.S3_ENDPOINT }}
68-
S3_ACCESS_KEY: ${{ secrets.S3_ACCESS_KEY }}
69-
S3_SECRET_KEY: ${{ secrets.S3_SECRET_KEY }}
70-
run: |
71-
echo "Uploading to S3 bucket: $S3_BUCKET"
72-
rclone sync ./storybook-static \
73-
:s3:"$S3_BUCKET/$S3_PATH" \
74-
--s3-provider=Ceph \
75-
--s3-endpoint="$S3_ENDPOINT" \
76-
--s3-access-key-id="$S3_ACCESS_KEY" \
77-
--s3-secret-access-key="$S3_SECRET_KEY"
78-
79-
- name: Upload artifact
80-
uses: actions/upload-pages-artifact@v3
81-
with:
82-
# Upload entire repository
83-
path: './storybook/storybook-static'
84-
85-
- name: Deploy to GitHub Pages
86-
id: deployment
87-
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)