Skip to content

Commit 4a47ac5

Browse files
authored
Merge branch 'main' into dependabot/npm_and_yarn/providers/cross-env-10.1.0
2 parents 8fae74d + ad8464f commit 4a47ac5

1 file changed

Lines changed: 63 additions & 0 deletions

File tree

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
name: Generate typedoc and Deploy Jekyll with GitHub Pages
2+
3+
on:
4+
# Runs on pushes targeting the default branch
5+
push:
6+
branches: ["main"]
7+
8+
# Allows you to run this workflow manually from the Actions tab
9+
workflow_dispatch:
10+
11+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
12+
permissions:
13+
contents: read
14+
pages: write
15+
id-token: write
16+
17+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
18+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
19+
concurrency:
20+
group: "pages"
21+
cancel-in-progress: false
22+
23+
jobs:
24+
# Build job
25+
build:
26+
runs-on: ubuntu-latest
27+
steps:
28+
- name: Checkout
29+
uses: actions/checkout@v6
30+
- name: Use Node.js 20
31+
uses: actions/setup-node@v6
32+
with:
33+
node-version: 20
34+
- name: Update rush shrinkwrap dependencies (for different node versions)
35+
run: node common/scripts/install-run-rush.js update --full
36+
- run: npm install rollup -g
37+
- run: npm install grunt-cli
38+
- run: npm install
39+
- run: npm run build --verbose
40+
timeout-minutes: 20
41+
- name: Generate the current Docs
42+
run: npm run docs
43+
- name: Setup Pages
44+
uses: actions/configure-pages@v5
45+
- name: Build with Jekyll
46+
uses: actions/jekyll-build-pages@v1
47+
with:
48+
source: ./docs
49+
destination: ./_site
50+
- name: Upload artifact
51+
uses: actions/upload-pages-artifact@v4
52+
53+
# Deployment job
54+
deploy:
55+
environment:
56+
name: github-pages
57+
url: ${{ steps.deployment.outputs.page_url }}
58+
runs-on: ubuntu-latest
59+
needs: build
60+
steps:
61+
- name: Deploy to GitHub Pages
62+
id: deployment
63+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)