Skip to content

Commit 8594bdb

Browse files
authored
Create generate_raw_content.yml
This will process the content_catalog.json and parses through the file specific md files and compile it into a raw content json file for data indexing
1 parent c755a36 commit 8594bdb

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Generate Raw Content JSON
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches: [main]
7+
paths:
8+
- "scripts/generate_raw_content.rb"
9+
- "content_catalog.json"
10+
- "**/*.md"
11+
12+
jobs:
13+
generate-raw-content:
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- name: Checkout repository
18+
uses: actions/checkout@v4
19+
20+
- name: Set up Ruby
21+
uses: ruby/setup-ruby@v1
22+
with:
23+
ruby-version: "3.3"
24+
25+
- name: Generate raw_content.json
26+
run: ruby scripts/generate_raw_content.rb
27+
28+
- name: Upload artifact
29+
uses: actions/upload-artifact@v4
30+
with:
31+
name: raw-content-json
32+
path: raw_content.json

0 commit comments

Comments
 (0)