Skip to content

Merge pull request #38 from coq-community/fix-warning-attribute #9

Merge pull request #38 from coq-community/fix-warning-attribute

Merge pull request #38 from coq-community/fix-warning-attribute #9

Workflow file for this run

name: Deploy to GitHub Pages
on:
push:
branches:
- main
pull_request:
branches:
- '**'
jobs:
deploy-pages:
runs-on: ubuntu-latest
steps:
- name: Set up Git repository
uses: actions/checkout@v4
- name: Copy content to deploy
run: |
mkdir public
sed -i -e 's,(\(src/.*\.v\)),(https://github.com/coq-community/coq-tricks/blob/main/\1),g' README.md
cp README.md public/index.md
echo 'theme: jekyll-theme-cayman' > public/_config.yml
- name: Deploy to GitHub pages
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
uses: crazy-max/ghaction-github-pages@v4
with:
build_dir: public
target_branch: gh-pages
jekyll: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}