-
Notifications
You must be signed in to change notification settings - Fork 2
76 lines (60 loc) · 1.85 KB
/
quarto-publish.yml
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
on:
push:
branches:
- main
name: Render and Publish Manual
permissions:
contents: write
pages: write
jobs:
build-deploy:
runs-on: ubuntu-latest
services:
neo4j:
image: neo4j
ports:
- 7687:7687
env:
NEO4J_AUTH: none
NEO4J_server.bolt.advertised_address: "localhost:7687"
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
- id: cache-venv
uses: actions/cache@v4
with:
key: venv-${{ runner.os }}-${{ steps.setup_python.outputs.python-version}}-${{ hashFiles('requirements.txt') }}
path: .venv
- run: python -m venv .venv
if: steps.cache-venv.outputs.cache-hit != 'true'
- name: Active Python virtualenv
run: |
source .venv/bin/activate
echo "$VIRTUAL_ENV/bin" >> $GITHUB_PATH
echo "VIRTUAL_ENV=$VIRTUAL_ENV" >> $GITHUB_ENV
- name: Install Python modules
run: python -m pip install -r requirements.txt
if: steps.cache-venv.outputs.cache-hit != 'true'
- name: Install node
uses: actions/setup-node@v4
- name: Install node modules
run: |
npm ci
echo "$(pwd)/node_modules/.bin" >> $GITHUB_PATH
- name: Set up Quarto
uses: quarto-dev/quarto-actions/setup@v2
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Import example graph
run: pgraph -t neo4j manual/crm-pg-example.pg neo4j.json
- name: Publish to GitHub Pages (and render)
uses: quarto-dev/quarto-actions/publish@v2
with:
path: manual
target: gh-pages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}