-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpages.yml.j2
More file actions
57 lines (46 loc) · 1.15 KB
/
pages.yml.j2
File metadata and controls
57 lines (46 loc) · 1.15 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: Deploy GitHub Pages
on:
push:
branches: [main]
paths:
- "skills/**"
- "rules/**"
- "mcp-tools.json"
- "site.json"
- ".cursor-plugin/plugin.json"
- "assets/**"
workflow_dispatch:
permissions:
pages: write
id-token: write
concurrency:
group: pages
cancel-in-progress: true
jobs:
build-and-deploy:
{% raw %}
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
{% endraw %}
steps:
- uses: actions/checkout@v4
- name: Checkout site template
uses: actions/checkout@v4
with:
repository: TMHSDigital/Developer-Tools-Directory
sparse-checkout: site-template
path: _template
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- run: pip install Jinja2
- name: Build site
run: python _template/site-template/build_site.py --repo-root . --out docs
- uses: actions/configure-pages@v5
- uses: actions/upload-pages-artifact@v4
with:
path: docs
- uses: actions/deploy-pages@v5
id: deployment