@@ -3,15 +3,15 @@ name: github-samples-app
33on :
44 push :
55 branches :
6- - master
6+ - main
77
8- workflow_dispatch :
8+ workflow_dispatch :
99
1010# schedule:
1111# - cron: '55 13 * * *'
1212
13- # Top-level default; empty/no permissions
14- permissions : {}
13+ # Top-level default; empty/no permissions
14+ permissions : {}
1515
1616jobs :
1717 pages :
@@ -33,36 +33,36 @@ jobs:
3333 ref : ' refs/heads/app/dev'
3434
3535 - uses : actions/checkout@v3
36- name : Check out master # checks out master in subdirectory
36+ name : Check out main # checks out main in subdirectory
3737 with :
38- ref : ' refs/heads/master '
39- path : master
40-
38+ ref : ' refs/heads/main '
39+ path : main
40+
4141 - name : Build JSON DB
4242 run : |
4343 python3 -m pip install -r src/requirements.txt
44- echo master
45- python3 src/db.py master
44+ echo main
45+ python3 src/db.py main
4646
47- - name : Remove JSON pre-prod
48- run : |
47+ - name : Remove JSON pre-prod
48+ run : |
4949 rm -rf src/docs/sample_db_pre.json
5050
5151 - name : Build Sphinx
52- run : |
52+ run : |
5353 python3 -m sphinx -W -b html src/docs/ src/docs/_build/
5454 echo $PWD
5555 echo ${{ github.ref }}
5656
5757 - name : Add GPU-Occupancy-Calculator
58- env :
58+ env :
5959 GPU_OCC_CALC : src/docs/_build/Tools/GPU-Occupancy-Calculator/
6060 run : |
6161 mkdir -p ${GPU_OCC_CALC}
62- cp -v ${{ github.workspace }}/master /Tools/GPU-Occupancy-Calculator/index.html ${GPU_OCC_CALC}/index.html
62+ cp -v ${{ github.workspace }}/main /Tools/GPU-Occupancy-Calculator/index.html ${GPU_OCC_CALC}/index.html
6363
6464 - name : Push docs
65- if : ${{ github.ref == 'refs/heads/master ' }} # only if this workflow is run from the master branch, push docs
65+ if : ${{ github.ref == 'refs/heads/main ' }} # only if this workflow is run from the main branch, push docs
6666 env :
6767 GITHUB_USER : ${{ github.actor }}
6868 GITHUB_TOKEN : ${{ github.token }}
0 commit comments