Skip to content

Commit

Permalink
feat(docs): restore workflow for publishing docs
Browse files Browse the repository at this point in the history
  • Loading branch information
smrz2001 committed Nov 15, 2023
1 parent 45d441a commit 05c054e
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Docs

on:
push:
branches: [main]
pull_request: # TODO: Remove after testing
workflow_dispatch: # can be manually triggered

jobs:
deploy-docs:
runs-on: ubuntu-latest
steps:
-
uses: actions/checkout@v2
-
uses: actions/setup-node@v1
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
-
name: Install Deps
run: npm ci
-
name: Build
run: npm run build
-
name: Generate docs
run: npm run docs
-
uses: jakejarvis/[email protected]
with:
args: --acl public-read --follow-symlinks --delete
env:
AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: 'us-east-1'
SOURCE_DIR: 'docs'

0 comments on commit 05c054e

Please sign in to comment.