Skip to content

Commit

Permalink
fix(ci): refactor converage.svg artifiact and add quarto build
Browse files Browse the repository at this point in the history
  • Loading branch information
spool committed Nov 15, 2023
1 parent be61962 commit 2b8659a
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,29 +89,31 @@ jobs:

- uses: actions/setup-python@v4
with:
python-version: MIN_PYTHON_VERSION
python-version: ${{ env.MIN_PYTHON_VERSION }}

- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
name: Update cache_id

- name: Download coverage svg
uses: actions/download-artifact@v3
with:
name: coverage-badge
path: ${{ env.COVERAGE_SVG_PATH }}

- name: Build quarto
run: |
docker compose build
# docker cp ${{ env.jupyter_id }}:app/docs/assets/coverage.svg docs/assets/
docker compose up --detach
docker cp $(docker compose ps -q docs):/usr/local/apache2/htdocs/ .
- name: Download coverage svg
uses: actions/download-artifact@v3
with:
name: coverage-badge
path: assets/
# - name: Build docker quarto
# run: |
# docker compose build
# docker cp ${{ env.jupyter_id }}:app/docs/assets/coverage.svg docs/assets/
# docker compose up --detach
# docker cp /app/_site/ /usr/local/apache2/htdocs/
# docker cp $(docker compose ps -q docs):/usr/local/apache2/htdocs/ .
# docker cp $(docker compose ps -q docs)/app/_site/ /usr/local/apache2/htdocs/
# - name: Apply mkdocs cache
# uses: actions/cache@v3
# with:
Expand Down

0 comments on commit 2b8659a

Please sign in to comment.