|
2 | 2 | # Modified to build with node |
3 | 3 | name: Deploy built static content to Pages |
4 | 4 | on: |
5 | | - # Runs on pushes targeting the default branch |
6 | | - push: |
7 | | - branches: ["dev"] |
8 | | - # Allows you to run this workflow manually from the Actions tab |
9 | | - workflow_dispatch: |
| 5 | + # Runs on pushes targeting the default branch |
| 6 | + push: |
| 7 | + branches: ["master"] |
| 8 | + # Allows you to run this workflow manually from the Actions tab |
| 9 | + workflow_dispatch: |
10 | 10 | # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages |
11 | 11 | permissions: |
12 | | - contents: read |
13 | | - pages: write |
14 | | - id-token: write |
| 12 | + contents: read |
| 13 | + pages: write |
| 14 | + id-token: write |
15 | 15 | # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. |
16 | 16 | # However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. |
17 | 17 | concurrency: |
18 | | - group: "pages" |
19 | | - cancel-in-progress: false |
| 18 | + group: "pages" |
| 19 | + cancel-in-progress: false |
20 | 20 | jobs: |
21 | | - # Build job |
22 | | - build: |
23 | | - runs-on: ubuntu-latest |
24 | | - steps: |
25 | | - - uses: actions/checkout@v3 |
26 | | - - name: Use Node.js 18.x |
27 | | - uses: actions/setup-node@v3 |
28 | | - with: |
29 | | - node-version: ${{ matrix.node-version }} |
30 | | - cache: "npm" |
31 | | - - run: npm ci |
32 | | - - run: npm run docgen |
33 | | - |
34 | | - - name: Setup Pages |
35 | | - id: pages |
36 | | - uses: actions/configure-pages@v3 |
37 | | - - name: Upload artifact |
38 | | - uses: actions/upload-pages-artifact@v1 |
39 | | - with: |
40 | | - path: ./docs |
41 | | - |
42 | | - # Single deploy job |
43 | | - deploy: |
44 | | - environment: |
45 | | - name: github-pages |
46 | | - url: ${{ steps.deployment.outputs.page_url }} |
47 | | - runs-on: ubuntu-latest |
48 | | - needs: build |
49 | | - steps: |
50 | | - - name: Deploy to GitHub Pages |
51 | | - id: deployment |
52 | | - uses: actions/deploy-pages@v1 |
| 21 | + # Build job |
| 22 | + build: |
| 23 | + runs-on: ubuntu-latest |
| 24 | + steps: |
| 25 | + - uses: actions/checkout@v3 |
| 26 | + - name: Use Node.js 18.x |
| 27 | + uses: actions/setup-node@v3 |
| 28 | + with: |
| 29 | + node-version: ${{ matrix.node-version }} |
| 30 | + cache: "npm" |
| 31 | + - run: npm ci |
| 32 | + - run: npm run docgen |
| 33 | + |
| 34 | + - name: Setup Pages |
| 35 | + id: pages |
| 36 | + uses: actions/configure-pages@v3 |
| 37 | + - name: Upload artifact |
| 38 | + uses: actions/upload-pages-artifact@v1 |
| 39 | + with: |
| 40 | + path: ./docs |
| 41 | + |
| 42 | + # Single deploy job |
| 43 | + deploy: |
| 44 | + environment: |
| 45 | + name: github-pages |
| 46 | + url: ${{ steps.deployment.outputs.page_url }} |
| 47 | + runs-on: ubuntu-latest |
| 48 | + needs: build |
| 49 | + steps: |
| 50 | + - name: Deploy to GitHub Pages |
| 51 | + id: deployment |
| 52 | + uses: actions/deploy-pages@v1 |
0 commit comments