Merge pull request #44 from robbertkrebbers/patch-1 #66
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
name: Deploy to GitHub Pages | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- '**' | |
jobs: | |
deploy-pages: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Git repository | |
uses: actions/checkout@v3 | |
- name: Copy content to deploy | |
run: | | |
mkdir public | |
cp README.md public/index.md | |
cp coq-logo.svg public/ | |
echo 'theme: jekyll-theme-cayman' > public/_config.yml | |
- name: Deploy to GitHub pages | |
if: github.event_name == 'push' && github.ref == 'refs/heads/master' | |
uses: crazy-max/ghaction-github-pages@v2 | |
with: | |
build_dir: public | |
target_branch: gh-pages | |
jekyll: true | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |