Skip to content

Commit

Permalink
ci(generate): prevent Mkdocs 'site' folder from being pushed to Bisko…
Browse files Browse the repository at this point in the history
…taki repo, after 'tox -e docs'
  • Loading branch information
boromir674 committed Mar 14, 2024
1 parent 8fe3fab commit 4312772
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/generate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ jobs:
# run: tox -e check

# # Docs Checks: Run Build Docs command, and verify it succeeds
# - name: 'Build Docs: Sphinx -> PASS'
# - name: 'Sphinx: Build Docs Web Site (html/css/js) -> PASS'
# working-directory: gen/biskotaki
# run: |
# tox -e pin-deps -- -E docs # poetry export
Expand Down Expand Up @@ -148,14 +148,19 @@ jobs:
poetry lock
working-directory: gen-gold/biskotaki-gold-standard

# Docs Checks: Run Build Docs command, and verify it succeeds
- name: 'Build Docs: Sphinx -> PASS'
## MKDOCS Checks: Run Build Docs command, and verify it succeeds ##
- name: 'Mkdocs: Build Docs Web Site (html/css/js) -> PASS'
working-directory: gen-gold/biskotaki-gold-standard
run: |
tox -e pin-deps -- -E docs # poetry export
tox -e docs
- name: Remove requirements file generated with 'poetry export' for Docs
# exlude 'site' dir from pushing to biskotaki repo
- name: Exclude 'site' folder, built with Mkdocs, from 'git push'
run: rm -rf gen-gold/biskotaki-gold-standard/site

# exlude 'reqs.txt' file, generated with 'poetry export' for Docs
- name: Exclude 'reqs.txt' file, generated with 'poetry export' for Docs
# See tox.ini -> testenv.setenv.DEFAULT_REQS_FILE
run: rm -f gen-gold/biskotaki-gold-standard/reqs.txt

Expand Down

0 comments on commit 4312772

Please sign in to comment.