Skip to content

Commit 98fa8dc

Browse files
authored
Comment out docs build (#36)
1 parent 70ece18 commit 98fa8dc

File tree

1 file changed

+72
-72
lines changed

1 file changed

+72
-72
lines changed

.github/workflows/build_workflow.yml

Lines changed: 72 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -113,75 +113,75 @@ jobs:
113113
pytest tests/unit/global_time_series/test_*.py
114114
115115
# If the branch updates documentation, then the docs will need to be updated.
116-
publish-docs:
117-
if: ${{ github.event_name == 'push' }}
118-
runs-on: ubuntu-latest
119-
defaults:
120-
run:
121-
shell: bash -l {0}
122-
timeout-minutes: 10 # Increased timeout for docs
123-
steps:
124-
- uses: actions/checkout@v2
125-
with:
126-
persist-credentials: false
127-
fetch-depth: 0
128-
129-
- name: Cache Conda
130-
uses: actions/cache@v3
131-
env:
132-
CACHE_NUMBER: 1 # Match the build job cache number
133-
with:
134-
path: ~/conda_pkgs_dir
135-
key: ${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{
136-
hashFiles('conda/dev.yml') }}-docs
137-
138-
- name: Build Conda Environment
139-
uses: conda-incubator/setup-miniconda@v3
140-
with:
141-
activate-environment: zppy_interfaces_dev
142-
miniforge-variant: Miniforge3
143-
miniforge-version: latest
144-
environment-file: conda/dev.yml
145-
channel-priority: flexible # Changed from strict to flexible
146-
auto-update-conda: true
147-
python-version: "3.13" # Use stable Python version for docs
148-
149-
- if: ${{ needs.check-jobs-to-skip.outputs.should_skip != 'true' }}
150-
name: Show Conda Environment Info
151-
run: |
152-
conda config --set anaconda_upload no
153-
conda info
154-
conda list
155-
156-
- name: Install `zppy-interfaces` Package
157-
run: pip install .
158-
159-
# sphinx-multiversion allows for version docs.
160-
- name: Build Sphinx Docs
161-
run: |
162-
cd docs
163-
sphinx-multiversion source _build/html
164-
165-
- name: Copy Docs and Commit
166-
run: |
167-
# gh-pages branch must already exist
168-
git clone https://github.com/E3SM-Project/zppy-interfaces.git --branch gh-pages --single-branch gh-pages
169-
170-
# Only replace main docs with latest changes. Docs for tags should be untouched.
171-
cd gh-pages
172-
rm -r _build/html/main
173-
cp -r ../docs/_build/html/main _build/html/main
174-
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
175-
git config --local user.name "github-actions[bot]"
176-
177-
# The below command will fail if no changes were present, so we ignore it
178-
git add .
179-
git commit -m "Update documentation" -a || true
180-
181-
- name: Push Changes
182-
uses: ad-m/github-push-action@master
183-
with:
184-
branch: gh-pages
185-
directory: gh-pages
186-
github_token: ${{ secrets.GITHUB_TOKEN }}
187-
force: true
116+
# publish-docs:
117+
# if: ${{ github.event_name == 'push' }}
118+
# runs-on: ubuntu-latest
119+
# defaults:
120+
# run:
121+
# shell: bash -l {0}
122+
# timeout-minutes: 10 # Increased timeout for docs
123+
# steps:
124+
# - uses: actions/checkout@v2
125+
# with:
126+
# persist-credentials: false
127+
# fetch-depth: 0
128+
129+
# - name: Cache Conda
130+
# uses: actions/cache@v3
131+
# env:
132+
# CACHE_NUMBER: 1 # Match the build job cache number
133+
# with:
134+
# path: ~/conda_pkgs_dir
135+
# key: ${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{
136+
# hashFiles('conda/dev.yml') }}-docs
137+
138+
# - name: Build Conda Environment
139+
# uses: conda-incubator/setup-miniconda@v3
140+
# with:
141+
# activate-environment: zppy_interfaces_dev
142+
# miniforge-variant: Miniforge3
143+
# miniforge-version: latest
144+
# environment-file: conda/dev.yml
145+
# channel-priority: flexible # Changed from strict to flexible
146+
# auto-update-conda: true
147+
# python-version: "3.13" # Use stable Python version for docs
148+
149+
# - if: ${{ needs.check-jobs-to-skip.outputs.should_skip != 'true' }}
150+
# name: Show Conda Environment Info
151+
# run: |
152+
# conda config --set anaconda_upload no
153+
# conda info
154+
# conda list
155+
156+
# - name: Install `zppy-interfaces` Package
157+
# run: pip install .
158+
159+
# # sphinx-multiversion allows for version docs.
160+
# - name: Build Sphinx Docs
161+
# run: |
162+
# cd docs
163+
# sphinx-multiversion source _build/html
164+
165+
# - name: Copy Docs and Commit
166+
# run: |
167+
# # gh-pages branch must already exist
168+
# git clone https://github.com/E3SM-Project/zppy-interfaces.git --branch gh-pages --single-branch gh-pages
169+
170+
# # Only replace main docs with latest changes. Docs for tags should be untouched.
171+
# cd gh-pages
172+
# rm -r _build/html/main
173+
# cp -r ../docs/_build/html/main _build/html/main
174+
# git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
175+
# git config --local user.name "github-actions[bot]"
176+
177+
# # The below command will fail if no changes were present, so we ignore it
178+
# git add .
179+
# git commit -m "Update documentation" -a || true
180+
181+
# - name: Push Changes
182+
# uses: ad-m/github-push-action@master
183+
# with:
184+
# branch: gh-pages
185+
# directory: gh-pages
186+
# github_token: ${{ secrets.GITHUB_TOKEN }}
187+
# force: true

0 commit comments

Comments
 (0)