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

runs:
  using: "composite"
  steps:
    - name: Checkout this repo
      uses: actions/checkout@v4
      with:
        repository: ikoamu/org-roam-ui-hosting
        path: action

    - name: "Checkout org file repo"
      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 graphdata generator dependencies
      working-directory: action
      run: npm install
      shell: bash

    - name: Generate graphdata.json
      working-directory: ./action
      run: ls -la
      shell: bash

    - name: Generate graphdata.json
      working-directory: action
      run: cat package.json
      shell: bash

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

    - name: print files
      run: ls -la
      working-directory: action
      shell: bash

    - name: print files
      run: cat graphdata.json
      working-directory: action
      shell: bash

    - name: Create Notes
      working-directory: action
      run: ./create_notes.sh
      shell: bash

    - name: print files
      run: ls -la
      working-directory: action
      shell: bash