Skip to content

Commit 842e76a

Browse files
committed
Change default brnch to main for githubpages.
Signed-off-by: michael vincerra <michael.vincerra@intel.com>
1 parent 5dfc5e7 commit 842e76a

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

.github/workflows/github-pages.yml

+17-17
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@ name: github-pages-app-dev
22

33
on:
44
push:
5-
branches:
5+
branches:
66
- app/dev
77

8-
#TRIGGER on PR if changes made to below file-paths.
8+
#TRIGGER on PR if changes made to below file-paths.
99
pull_request:
1010
types:
1111
- opened
1212
- synchronize
1313
branches:
14-
- master
15-
paths:
14+
- main
15+
paths:
1616
- "src/db.py"
1717
- "src/requirements.txt"
1818
- "src/docs/conf.py"
@@ -45,28 +45,28 @@ jobs:
4545
- uses: actions/checkout@v3
4646
# with:
4747
# path: app/dev
48-
# Adding above 2 lines forces pre-pending filepaths below w/ 'app/dev/filepath'
48+
# Adding above 2 lines forces pre-pending filepaths below w/ 'app/dev/filepath'
4949

5050
- uses: actions/checkout@v3
51-
name: Check out master
52-
with:
53-
ref: 'refs/heads/master'
54-
path: master
55-
56-
# TODO: change to 'python3 app/dev/src/db.py master' per actions/checkout@3
51+
name: Check out main
52+
with:
53+
ref: 'refs/heads/main
54+
path: main
55+
56+
# TODO: change to 'python3 app/dev/src/db.py main' per actions/checkout@3
5757
- name: Build JSON DB
5858
run: |
5959
python3 -m pip install -r src/requirements.txt
60-
echo master
61-
python3 src/db.py master
60+
echo main
61+
python3 src/db.py main
6262
63-
- name: Remove JSON pre-prod
64-
run: |
63+
- name: Remove JSON pre-prod
64+
run: |
6565
rm -rf src/docs/sample_db_pre.json
6666
6767
- name: Build Sphinx
6868
run: |
69-
python3 -m pip install -r src/requirements.txt
69+
python3 -m pip install -r src/requirements.txt
7070
python3 -m sphinx -W -b html src/docs/ src/docs/_build/
7171
echo $PWD
7272
echo ${{ github.ref }}
@@ -77,7 +77,7 @@ jobs:
7777
run: |
7878
mkdir -p ${GPU_OCC_CALC}
7979
cd ${GPU_OCC_CALC}
80-
wget https://raw.githubusercontent.com/oneapi-src/oneAPI-samples/master/Tools/GPU-Occupancy-Calculator/index.html
80+
wget https://raw.githubusercontent.com/oneapi-src/oneAPI-samples/main/Tools/GPU-Occupancy-Calculator/index.html
8181
8282
- name: Push docs
8383
if: ${{ github.ref == 'refs/heads/app/dev' }}

0 commit comments

Comments
 (0)