From 842e76a0dd1e5293b5b262539cb291a4f6448312 Mon Sep 17 00:00:00 2001 From: michael vincerra Date: Fri, 11 Oct 2024 14:27:01 -0700 Subject: [PATCH] Change default brnch to main for githubpages. Signed-off-by: michael vincerra --- .github/workflows/github-pages.yml | 34 +++++++++++++++--------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/.github/workflows/github-pages.yml b/.github/workflows/github-pages.yml index 61b90ea501..911825422e 100755 --- a/.github/workflows/github-pages.yml +++ b/.github/workflows/github-pages.yml @@ -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" @@ -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 }} @@ -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' }}