Merge pull request #38 from coq-community/fix-warning-attribute #9
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: | |
- 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 }} |