Merge pull request #2528 from dalf/mod-ci-gh-pages

[mod] CI: minor changes
This commit is contained in:
Alexandre Flament 2021-02-04 23:12:27 +01:00 committed by GitHub
commit 321788f14a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -73,7 +73,7 @@ jobs:
python-version: '3.9' python-version: '3.9'
architecture: 'x64' architecture: 'x64'
- name: Build documentation - name: Build documentation
run: SEARX_DEBUG=1 make V=1 travis-gh-pages run: SEARX_DEBUG=1 make V=1 ci-gh-pages
- name: Deploy - name: Deploy
if: github.ref == 'refs/heads/master' if: github.ref == 'refs/heads/master'
uses: JamesIves/github-pages-deploy-action@3.7.1 uses: JamesIves/github-pages-deploy-action@3.7.1

View file

@ -186,8 +186,8 @@ gh-pages: docs-clean docs
git commit -q -m "make gh-pages: from $(shell git config --get remote.origin.url)@$(shell git rev-parse HEAD)" ;\ git commit -q -m "make gh-pages: from $(shell git config --get remote.origin.url)@$(shell git rev-parse HEAD)" ;\
git push -f origin gh-pages git push -f origin gh-pages
PHONY += travis-gh-pages PHONY += ci-gh-pages
travis-gh-pages: docs-clean docs ci-gh-pages: docs-clean docs
rm -Rf $(GH_PAGES) rm -Rf $(GH_PAGES)
mkdir -p $(GH_PAGES) mkdir -p $(GH_PAGES)
$(MAKE) prepare-gh-pages $(MAKE) prepare-gh-pages