Skip to content

Commit

Permalink
Change default brnch to main for githubpages.
Browse files Browse the repository at this point in the history
Signed-off-by: michael vincerra <[email protected]>
  • Loading branch information
mvincerx committed Oct 11, 2024
1 parent 5dfc5e7 commit 842e76a
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions .github/workflows/github-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@ name: github-pages-app-dev

on:
push:
branches:
branches:
- app/dev

#TRIGGER on PR if changes made to below file-paths.
#TRIGGER on PR if changes made to below file-paths.
pull_request:
types:
- opened
- synchronize
branches:
- master
paths:
- main
paths:
- "src/db.py"
- "src/requirements.txt"
- "src/docs/conf.py"
Expand Down Expand Up @@ -45,28 +45,28 @@ jobs:
- uses: actions/checkout@v3
# with:
# path: app/dev
# Adding above 2 lines forces pre-pending filepaths below w/ 'app/dev/filepath'
# Adding above 2 lines forces pre-pending filepaths below w/ 'app/dev/filepath'

- uses: actions/checkout@v3
name: Check out master
with:
ref: 'refs/heads/master'
path: master
# TODO: change to 'python3 app/dev/src/db.py master' per actions/checkout@3
name: Check out main
with:
ref: 'refs/heads/main
path: main
# TODO: change to 'python3 app/dev/src/db.py main' per actions/checkout@3
- name: Build JSON DB
run: |
python3 -m pip install -r src/requirements.txt
echo master
python3 src/db.py master
echo main
python3 src/db.py main
- name: Remove JSON pre-prod
run: |
- name: Remove JSON pre-prod
run: |
rm -rf src/docs/sample_db_pre.json
- name: Build Sphinx
run: |
python3 -m pip install -r src/requirements.txt
python3 -m pip install -r src/requirements.txt
python3 -m sphinx -W -b html src/docs/ src/docs/_build/
echo $PWD
echo ${{ github.ref }}
Expand All @@ -77,7 +77,7 @@ jobs:
run: |
mkdir -p ${GPU_OCC_CALC}
cd ${GPU_OCC_CALC}
wget https://raw.githubusercontent.com/oneapi-src/oneAPI-samples/master/Tools/GPU-Occupancy-Calculator/index.html
wget https://raw.githubusercontent.com/oneapi-src/oneAPI-samples/main/Tools/GPU-Occupancy-Calculator/index.html
- name: Push docs
if: ${{ github.ref == 'refs/heads/app/dev' }}
Expand Down

0 comments on commit 842e76a

Please sign in to comment.