aboutsummaryrefslogtreecommitdiff
path: root/action.yml
blob: dcb344a1dab7a281bc8ea689c3edaf4d3e898de5 (plain)
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
name: "Publish org-roam to GitHub Pages"

runs:
  using: "composite"
  steps:
    - name: "Checkout"
      uses: actions/checkout@v4
      with:
        repository: ${{ github.repository }}
        path: "orgs"

    - name: Checkout org-roam-ui
      uses: actions/checkout@v4
      with:
        repository: ikoamu/org-roam-ui
        ref: feature/add-export-functionality
        path: ui

    - name: Setup Node
      uses: actions/setup-node@v3
      with:
        node-version: "20.x"

    - name: Install dependencies
      run: npm install
      shell: bash

    - name: Generate graphdata.json
      run: npm run generate --script_params=./orgs/org-roam.db
      shell: bash

    - name: print graphdata.json
      run: cat graphdata.json
      shell: bash