Skip to content

Commit

Permalink
Test docs deployment 2nd attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
fongsean committed Jul 11, 2024
1 parent 5455eeb commit ac399e7
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 29 deletions.
52 changes: 26 additions & 26 deletions .github/workflows/deploy_app_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,32 +45,32 @@ jobs:
- name: Upload static React site to S3
run: aws s3 sync apps/smart-forms-app/dist s3://smart-forms-react-app/

deploy-docusaurus-s3:
name: Deploy Docusaurus to S3
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Use Node.js 18.x
uses: actions/setup-node@v4
with:
node-version: 18
cache: npm

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: arn:aws:iam::209248795938:role/SmartFormsReactAppDeployment
aws-region: ap-southeast-2

- name: Install dependencies
run: npm ci

- name: Build documentation website
run: npm run build -w documentation

- name: Upload static Docusaurus site to S3
run: aws s3 sync documentation/build s3://smart-forms-docs/docs
# deploy-docusaurus-s3:
# name: Deploy Docusaurus to S3
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
#
# - name: Use Node.js 18.x
# uses: actions/setup-node@v4
# with:
# node-version: 18
# cache: npm
#
# - name: Configure AWS credentials
# uses: aws-actions/configure-aws-credentials@v4
# with:
# role-to-assume: arn:aws:iam::209248795938:role/SmartFormsReactAppDeployment
# aws-region: ap-southeast-2
#
# - name: Install dependencies
# run: npm ci
#
# - name: Build documentation website
# run: npm run build -w documentation
#
# - name: Upload static Docusaurus site to S3
# run: aws s3 sync documentation/build s3://smart-forms-docs/docs

chromatic:
name: Run Chromatic
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy_test_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ jobs:
run: npm run build -w documentation

- name: Upload static Docusaurus site to S3
run: aws s3 sync documentation/build s3://smart-forms-test-docs/docz --cache-control no-cache
run: aws s3 sync documentation/build s3://smart-forms-docs/docs --cache-control no-cache
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ac399e7

Please sign in to comment.