Skip to content

Commit 52bd102

Browse files
committed
deploy graph
1 parent 580e95d commit 52bd102

File tree

2 files changed

+78
-0
lines changed

2 files changed

+78
-0
lines changed

.github/workflows/generate-graph.yml

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
name: generate-graph
2+
on:
3+
push:
4+
branches: [main]
5+
# pull_request:
6+
workflow_dispatch:
7+
8+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
9+
permissions:
10+
contents: read
11+
pages: write
12+
id-token: write
13+
14+
concurrency:
15+
group: 'pages'
16+
cancel-in-progress: true
17+
jobs:
18+
build:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: clone
22+
- uses: actions/checkout@v2
23+
24+
- name: Install Node.js
25+
uses: actions/setup-node@v3
26+
with:
27+
node-version: 16
28+
29+
- uses: pnpm/action-setup@v2
30+
name: Install pnpm
31+
id: pnpm-install
32+
with:
33+
version: 7
34+
run_install: false
35+
36+
- name: Get pnpm store directory
37+
id: pnpm-cache
38+
shell: bash
39+
run: |
40+
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
41+
42+
- uses: actions/cache@v3
43+
name: Setup pnpm cache
44+
with:
45+
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
46+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
47+
restore-keys: |
48+
${{ runner.os }}-pnpm-store-
49+
50+
- name: Install dependencies
51+
run: pnpm install
52+
53+
# - name: Build
54+
# run: pnpm build
55+
56+
- name: Generate graph
57+
run: pnpm run generate-graph
58+
59+
# Push `index.html` and `static` folder to `github-pages` branch
60+
- name: Upload artifact
61+
uses: actions/upload-pages-artifact@v1
62+
with:
63+
path: ./graph
64+
65+
# Deployment job
66+
deploy:
67+
environment:
68+
name: github-pages
69+
url: ${{ steps.deployment.outputs.page_url }}
70+
runs-on: ubuntu-latest
71+
needs: build
72+
steps:
73+
- name: Deploy to GitHub Pages
74+
id: deployment
75+
uses: actions/deploy-pages@v1

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,8 @@ Port of [hast-util-is-element](https://github.com/syntax-tree/hast-util-has-prop
262262

263263
Port of `(hast-util-select)[https://github.com/syntax-tree/hast-util-select]` for use with `xast` nodes.
264264

265+
<!--
266+
265267
## Projects
266268
267269
### rejour
@@ -335,6 +337,7 @@ Stringifier.
335337
##### [texast-util-to-latex][texast-util-to-latex]
336338
337339
Utility for stringifying `texast` syntax trees, mostly based off of [mdast-util-to-markdown][mdast-markdown]
340+
-->
338341

339342
## License
340343

0 commit comments

Comments
 (0)