Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Copy docs before deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasdiez committed Feb 6, 2022
1 parent 4421342 commit a94d1e8
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions .github/workflows/doc-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,25 @@ jobs:
# Reuse built SAGE_LOCAL contained in the Docker image
./bootstrap
./configure --enable-build-as-root --prefix=/sage/local --with-sage-venv
- name: Build
run: make doc-html
env:
MAKE: make -j2
SAGE_NUM_THREADS: 2

- name: Copy docs
run: |
# For some reason the deploy step below cannot find /sage/...
# So copy everything from there to local folder
mkdir -p ./docs
cp -r /sage/local/share/doc/sage/html/en ./docs
- name: Deploy to Netlify
uses: jsmrcaga/[email protected]
with:
build_directory: '/sage/local/share/doc/sage/html/en'
install_command: 'echo "Install"'
build_command: 'echo "Build"'
deploy_alias: ${{ github.ref_name }} # Base deploy URL on branch name
uses: netlify/actions/cli@master
with:
args: deploy --dir=docs --alias="${NETLIFY_ALIAS}"
env:
NETLIFY_ALIAS: ${{ github.ref_name }}
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}

0 comments on commit a94d1e8

Please sign in to comment.