This repository has been archived by the owner on Jan 30, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4421342
commit a94d1e8
Showing
1 changed file
with
13 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 }} |