Skip to content

Commit da64af7

Browse files
committed
revert to previous checkout action at top-level
Signed-off-by: michael vincerra <michael.vincerra@intel.com>
1 parent 5a09a03 commit da64af7

2 files changed

Lines changed: 23 additions & 23 deletions

File tree

.github/workflows/github-pages.yml

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,19 @@ on:
1717
branches:
1818
- master
1919
paths:
20-
- "app/dev/src/db.py"
21-
- "app/dev/src/requirements.txt"
22-
- "app/dev/src/docs/conf.py"
23-
- "app/dev/src/docs/Makefile"
24-
- "app/dev/src/docs/make.bat"
25-
- "app/dev/src/docs/_static/styles.css"
26-
- "app/dev/src/docs/_static/intel.css"
27-
- "app/dev/src/docs/_static/assets/logo-energyblue-white.svg"
28-
- "app/dev/src/docs/_static/sample_db_prd.json"
29-
- "app/dev/src/docs/_static/assets/favicon.ico"
30-
- "app/dev/src/docs/_static/script.js"
31-
- "app/dev/src/docs/_templates/base.html"
32-
- "app/dev/src/docs/_templates/index.html"
20+
- "src/db.py"
21+
- "src/requirements.txt"
22+
- "src/docs/conf.py"
23+
- "src/docs/Makefile"
24+
- "src/docs/make.bat"
25+
- "src/docs/_static/styles.css"
26+
- "src/docs/_static/intel.css"
27+
- "src/docs/_static/assets/logo-energyblue-white.svg"
28+
- "src/docs/_static/sample_db_prd.json"
29+
- "src/docs/_static/assets/favicon.ico"
30+
- "src/docs/_static/script.js"
31+
- "src/docs/_templates/base.html"
32+
- "src/docs/_templates/index.html"
3333

3434
# defaults:
3535
# run:
@@ -48,8 +48,8 @@ jobs:
4848

4949
# - run: find | sort
5050
- uses: actions/checkout@v3
51-
with:
52-
path: app/dev
51+
# with:
52+
# path: app/dev
5353
# Adding above 2 lines forces pre-pending filepaths below w/ 'app/dev/filepath'
5454

5555
- uses: actions/checkout@v3
@@ -61,24 +61,24 @@ jobs:
6161
# TODO: change to 'python3 app/dev/src/db.py master' per actions/checkout@3
6262
- name: Build JSON DB
6363
run: |
64-
python3 -m pip install -r app/dev/src/requirements.txt
64+
python3 -m pip install -r src/requirements.txt
6565
echo master
66-
python3 app/dev/src/db.py master
66+
python3 src/db.py master
6767
6868
- name: Remove JSON pre-prod
6969
run: |
70-
rm -rf app/dev/src/docs/sample_db_pre.json
70+
rm -rf src/docs/sample_db_pre.json
7171
7272
- name: Build Sphinx
7373
run: |
74-
python3 -m pip install -r app/dev/src/requirements.txt
75-
python3 -m sphinx -W -b html app/dev/src/docs/ app/dev/src/docs/_build/
74+
python3 -m pip install -r src/requirements.txt
75+
python3 -m sphinx -W -b html src/docs/ src/docs/_build/
7676
echo $PWD
7777
echo ${{ github.ref }}
7878
7979
- name: Add GPU-Occupancy-Calculator
8080
env:
81-
GPU_OCC_CALC: app/dev/src/docs/_build/Tools/GPU-Occupancy-Calculator/
81+
GPU_OCC_CALC: src/docs/_build/Tools/GPU-Occupancy-Calculator/
8282
run: |
8383
mkdir -p ${GPU_OCC_CALC}
8484
cd ${GPU_OCC_CALC}
@@ -91,7 +91,7 @@ jobs:
9191
GITHUB_TOKEN: ${{ github.token }}
9292
GITHUB_REPO: ${{ github.repository }}
9393
run: |
94-
cd app/dev/src/docs/_build/
94+
cd src/docs/_build/
9595
touch .nojekyll
9696
git init
9797
git remote add origin "https://${GITHUB_USER}:${GITHUB_TOKEN}@github.com/${GITHUB_REPO}"

src/db.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def df_to_db(file_paths:list):
8181
'''Create prod database, combining df_add_urls(); output for frontend display'''
8282
df = df_add_urls(file_paths)
8383
# filepath below must match steps in assoc CI Job, 'with: path: app/dev'
84-
rev_json = Path('app/dev/src/docs/_static/sample_db_prd.json')
84+
rev_json = Path('src/docs/_static/sample_db_prd.json')
8585
db = df.to_json(rev_json, orient='records')
8686
return db
8787

0 commit comments

Comments
 (0)