Skip to content

Commit

Permalink
make Makefile.coq with make
Browse files Browse the repository at this point in the history
  • Loading branch information
start974 committed Jul 2, 2021
1 parent 38a46ad commit 19d96c5
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/buid-documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,15 @@ jobs:
uses: actions/checkout@v2

- name: Compile Coq-Doc
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
#if: github.event_name == 'push' && github.ref == 'refs/heads/master'
uses: coq-community/docker-coq-action@v1
with:
custom_image: ${{ matrix.image }}
before_script: |
startGroup "Create Makefile.coq and add permission"
make || true
sudo chown -R coq:coq .
make Makefile.coq
sudo chown -R coq:coq Makefile.coq
endGroup
script: |
startGroup "Build documentation"
Expand All @@ -51,10 +52,11 @@ jobs:
latexmk_use_lualatex: true

- name: Extract PDF and Coq-Doc
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
run: |
mkdir -p public/doc public/theories
cp doc/hydras.pdf public/doc/
cp -r theories/html public/theories/ || true
cp -r theories/html public/theories/
# Depending on whether we are on master or not, we deploy to
# GitHub Pages or as an artifact
- name: Deploy to GitHub pages
Expand Down

0 comments on commit 19d96c5

Please sign in to comment.