Skip to content

Commit

Permalink
Merge pull request #288 from capralifecycle/cals-400/generate-and-hos…
Browse files Browse the repository at this point in the history
…t-documentation

cals 400/generate and host documentation
  • Loading branch information
joakimen authored Dec 11, 2024
2 parents fb57577 + c14af62 commit e6bcb4c
Show file tree
Hide file tree
Showing 4 changed files with 244 additions and 1 deletion.
47 changes: 47 additions & 0 deletions .github/workflows/update-documentation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: update-documentation
on:
workflow_run:
workflows: [ci]
types:
- completed
branches:
- master
workflow_dispatch:

permissions:
contents: read
pages: write
id-token: write

concurrency:
group: "pages"
cancel-in-progress: false

jobs:

build-documentation:
runs-on: ubuntu-latest
steps:

- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

- uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
with:
node-version: 20

- name: install dependencies
run: npm ci

- name: generate documentation
run: npm run docs

- name: configure pages
uses: actions/configure-pages@v5

- name: upload documentation artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./docs

- name: deploy documentation to GitHub Pages
uses: actions/deploy-pages@v4
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ node_modules/
cdk.out/
/*.tgz
.idea
docs/
193 changes: 193 additions & 0 deletions package-lock.json

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

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"lint:fix": "eslint --fix .",
"prepare": "npm run build && husky",
"semantic-release": "semantic-release",
"snapshots": "./scripts/create-snapshots.sh"
"snapshots": "./scripts/create-snapshots.sh",
"docs": "typedoc src --out docs"
},
"bin": {
"cdk-create-snapshots": "lib/bin/cdk-create-snapshots.js",
Expand Down Expand Up @@ -73,6 +74,7 @@
"semantic-release": "24.2.0",
"ts-jest": "29.2.5",
"ts-node": "10.9.2",
"typedoc": "0.27.4",
"typescript": "5.7.2"
},
"dependencies": {
Expand Down

0 comments on commit e6bcb4c

Please sign in to comment.