Skip to content

Commit

Permalink
Add documentation deployment workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
acomagu committed Apr 30, 2024
1 parent 24c875b commit 4f592c2
Show file tree
Hide file tree
Showing 4 changed files with 139 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Deploy the document to Pages
on:
push:
branches: ['main']
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: 'pages'
cancel-in-progress: true
jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
- run: npm ci
- run: npx typedoc
- uses: actions/configure-pages@v4
- uses: actions/upload-pages-artifact@v3
with:
path: 'docs'
- uses: actions/deploy-pages@v4
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
node_modules
docs
106 changes: 106 additions & 0 deletions package-lock.json

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"@aws-sdk/util-dynamodb": "^3.564.0",
"@types/node": "^20.12.7",
"dataloader": "^2.2.2",
"typedoc": "^0.25.13",
"typescript": "^5.4.5",
"ulid": "^2.3.0"
}
Expand Down

0 comments on commit 4f592c2

Please sign in to comment.