From 6b0bb41564720c922780662d3075bc2dd2499a4b Mon Sep 17 00:00:00 2001 From: Oleg Kalachev Date: Sat, 29 May 2021 06:11:29 +0300 Subject: [PATCH] CI: push documentation site to the main repo --- .github/workflows/docs.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 2a70449d..a12fefb4 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -35,7 +35,7 @@ jobs: gitbook install gitbook build - name: Generate PDF - if: ${{ github.repository == 'CopterExpress/clover' && github.event_name == 'push' && github.ref == 'refs/heads/master' }} + if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} run: | for i in 1 2 3 4; do gitbook pdf ./ _book/clover.pdf && break || sleep 1; done sudo apt-get -q install ghostscript @@ -46,11 +46,9 @@ jobs: ls -lah _book/clover*.pdf - name: Deploy uses: JamesIves/github-pages-deploy-action@4.1.3 - if: ${{ github.repository == 'CopterExpress/clover' && github.event_name == 'push' && github.ref == 'refs/heads/master' }} + if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} with: branch: gh-pages folder: _book - repository-name: CopterExpress/clover.coex.tech - token: ${{ secrets.DOCS_DEPLOY_TOKEN }} clean: true single-commit: true # to avoid multiple copies of large pdf files