|
1 | 1 | name: Deploy to GitHub Pages
|
2 | 2 |
|
3 | 3 | on:
|
4 |
| - push: |
5 |
| - branches: |
6 |
| - - main |
| 4 | + push: |
| 5 | + branches: |
| 6 | + - main |
7 | 7 |
|
8 | 8 | permissions:
|
9 |
| - contents: read |
10 |
| - pages: write |
11 |
| - id-token: write |
| 9 | + contents: read |
| 10 | + pages: write |
| 11 | + id-token: write |
12 | 12 |
|
13 | 13 | concurrency:
|
14 |
| - group: "pages" |
15 |
| - cancel-in-progress: false |
| 14 | + group: "pages" |
| 15 | + cancel-in-progress: false |
16 | 16 |
|
17 | 17 | jobs:
|
18 |
| - build: |
19 |
| - runs-on: ubuntu-22.04 |
20 |
| - steps: |
21 |
| - - uses: actions/checkout@v3 |
22 |
| - with: |
23 |
| - repository: "Chris1320/SetupGuides-serve" |
24 |
| - submodules: true |
25 |
| - fetch-depth: 0 # Fetch all history for git info |
26 |
| - - uses: actions/setup-node@v3 |
27 |
| - with: |
28 |
| - node-version: 18.14 |
29 |
| - - name: Update submodules # Always get the latest contents |
30 |
| - run: | |
31 |
| - git submodule update --init --recursive --remote -f |
32 |
| - - name: Install Dependencies |
33 |
| - run: npm ci |
34 |
| - - name: Build Quartz |
35 |
| - run: npx quartz build |
36 |
| - - name: Upload artifact |
37 |
| - uses: actions/upload-pages-artifact@v2 |
38 |
| - with: |
39 |
| - path: public |
| 18 | + build: |
| 19 | + runs-on: ubuntu-22.04 |
| 20 | + steps: |
| 21 | + - uses: actions/checkout@v3 |
| 22 | + with: |
| 23 | + repository: "Chris1320/SetupGuides-serve" |
| 24 | + submodules: true |
| 25 | + fetch-depth: 0 # Fetch all history for git info |
| 26 | + - uses: actions/setup-node@v4 |
| 27 | + with: |
| 28 | + node-version: 22.x |
| 29 | + - name: Update submodules # Always get the latest contents |
| 30 | + run: | |
| 31 | + git submodule update --init --recursive --remote -f |
| 32 | + - name: Install Dependencies |
| 33 | + run: npm ci |
| 34 | + - name: Build Quartz |
| 35 | + run: npx quartz build |
| 36 | + - name: Upload artifact |
| 37 | + uses: actions/upload-pages-artifact@v2 |
| 38 | + with: |
| 39 | + path: public |
40 | 40 |
|
41 |
| - deploy: |
42 |
| - needs: build |
43 |
| - environment: |
44 |
| - name: github-pages |
45 |
| - url: ${{ steps.deployment.outputs.page_url }} |
46 |
| - runs-on: ubuntu-latest |
47 |
| - steps: |
48 |
| - - name: Deploy to GitHub Pages |
49 |
| - id: deployment |
50 |
| - uses: actions/deploy-pages@v2 |
| 41 | + deploy: |
| 42 | + needs: build |
| 43 | + environment: |
| 44 | + name: github-pages |
| 45 | + url: ${{ steps.deployment.outputs.page_url }} |
| 46 | + runs-on: ubuntu-latest |
| 47 | + steps: |
| 48 | + - name: Deploy to GitHub Pages |
| 49 | + id: deployment |
| 50 | + uses: actions/deploy-pages@v2 |
0 commit comments