diff options
author | Yann Herklotz <git@yannherklotz.com> | 2020-08-14 01:57:45 +0100 |
---|---|---|
committer | Yann Herklotz <git@yannherklotz.com> | 2020-08-14 01:57:45 +0100 |
commit | a099573c852cfbe63bcc1e65eddc093f68b75e8a (patch) | |
tree | c951bbf6b209a5939f0b0c721ed5da2955ade709 | |
parent | fc1eee2e4d5f1602de7c175a93ff9409b609a2d9 (diff) | |
download | vericert-a099573c852cfbe63bcc1e65eddc093f68b75e8a.tar.gz vericert-a099573c852cfbe63bcc1e65eddc093f68b75e8a.zip |
Add download of Coq documentation
-rw-r--r-- | .github/workflows/gh-pages.yml | 5 | ||||
-rwxr-xr-x | scripts/download_artifact.sh | 8 |
2 files changed, 13 insertions, 0 deletions
diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index ed7e032..ab4f277 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -19,6 +19,11 @@ jobs: - name: Generate documentation run: cd docs && emacs --batch --no-init --load publish.el --funcall org-publish-all + - name: Generation Coq documentation + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: scripts/download_artifact.sh + - name: Generate Admitted icon run: python3 scripts/statistics.py src && mkdir -p docs/html/assets && mv admitted.svg docs/html/assets/. diff --git a/scripts/download_artifact.sh b/scripts/download_artifact.sh new file mode 100755 index 0000000..5ba8b4d --- /dev/null +++ b/scripts/download_artifact.sh @@ -0,0 +1,8 @@ +#!/bin/sh + +mkdir -p docs/html/docs +cd docs/html/docs +curl -v -L -H "Accept: application/vnd.github.v3+json" -H "Authorization: token $GITHUB_TOKEN" https://api.github.com/repos/ymherklotz/vericert/actions/artifacts/14069960/zip -o html-documentation.zip +unzip html-documentation.zip +rm html-documentation.zip +cp ../../css/coqdoc.css . |