-
-
Notifications
You must be signed in to change notification settings - Fork 338
57 lines (51 loc) · 1.24 KB
/
Copy pathdeploy.yml
File metadata and controls
57 lines (51 loc) · 1.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Build & Deploy
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
permissions:
contents: read
concurrency:
group: pages-${{ github.ref }}
cancel-in-progress: true
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version: '24'
- name: Markdown link check
run: npx --yes markdown-link-check@3.15.0 README.md --config .mlc_deploy_config.json
build:
runs-on: ubuntu-latest
needs: lint
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version: '24'
- name: Build site
run: node build.js
- name: Verify site output
run: test -s dist/index.html
- uses: actions/upload-pages-artifact@v5
if: github.event_name != 'pull_request'
with:
path: ./dist
deploy:
if: github.event_name != 'pull_request'
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
permissions:
pages: write
id-token: write
steps:
- uses: actions/deploy-pages@v5
id: deployment