@@ -3,15 +3,15 @@ name: github-samples-app
3
3
on :
4
4
push :
5
5
branches :
6
- - master
6
+ - main
7
7
8
- workflow_dispatch :
8
+ workflow_dispatch :
9
9
10
10
# schedule:
11
11
# - cron: '55 13 * * *'
12
12
13
- # Top-level default; empty/no permissions
14
- permissions : {}
13
+ # Top-level default; empty/no permissions
14
+ permissions : {}
15
15
16
16
jobs :
17
17
pages :
@@ -33,36 +33,36 @@ jobs:
33
33
ref : ' refs/heads/app/dev'
34
34
35
35
- uses : actions/checkout@v3
36
- name : Check out master # checks out master in subdirectory
36
+ name : Check out main # checks out main in subdirectory
37
37
with :
38
- ref : ' refs/heads/master '
39
- path : master
40
-
38
+ ref : ' refs/heads/main '
39
+ path : main
40
+
41
41
- name : Build JSON DB
42
42
run : |
43
43
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
46
46
47
- - name : Remove JSON pre-prod
48
- run : |
47
+ - name : Remove JSON pre-prod
48
+ run : |
49
49
rm -rf src/docs/sample_db_pre.json
50
50
51
51
- name : Build Sphinx
52
- run : |
52
+ run : |
53
53
python3 -m sphinx -W -b html src/docs/ src/docs/_build/
54
54
echo $PWD
55
55
echo ${{ github.ref }}
56
56
57
57
- name : Add GPU-Occupancy-Calculator
58
- env :
58
+ env :
59
59
GPU_OCC_CALC : src/docs/_build/Tools/GPU-Occupancy-Calculator/
60
60
run : |
61
61
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
63
63
64
64
- 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
66
66
env :
67
67
GITHUB_USER : ${{ github.actor }}
68
68
GITHUB_TOKEN : ${{ github.token }}
0 commit comments