Skip to content

Merge pull request #446 from Cloud-Code-AI/444-feat-add-a-param-which… #1

Merge pull request #446 from Cloud-Code-AI/444-feat-add-a-param-which…

Merge pull request #446 from Cloud-Code-AI/444-feat-add-a-param-which… #1

Workflow file for this run

name: Update Docs on GitHub Pages and S3
on:
push:
branches:
- 'main'
paths:
- 'docs/**'
jobs:
build:
runs-on: ubuntu-latest
env:
NEXT_PUBLIC_BASE_PATH: /kaizen
steps:
- uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: 20.x
- name: Install packages and run build
run: |
cd docs
npm ci
npm run build
- name: Add nojekyll file
run: |
cd docs
touch ./out/.nojekyll
- name: Deploy to GitHub pages
uses: JamesIves/github-pages-deploy-action@4.1.1
with:
branch: gh-pages
folder: docs/out
token: ${{ secrets.DEPLOY_TOKEN }}
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ${{ secrets.AWS_REGION }}
- name: Copy files to specific path
run: |
aws s3 cp docs/out ${{ secrets.S3_BUCKET_PATH }}/ --recursive