Skip to content

Commit

Permalink
absolute link substitution using sed in pages deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
palmskog authored and tchajed committed Jul 26, 2024
1 parent 61c1ba2 commit a4b22ce
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/deploy-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,13 @@ jobs:
- 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@v2
uses: crazy-max/ghaction-github-pages@v4
with:
build_dir: public
target_branch: gh-pages
Expand Down

0 comments on commit a4b22ce

Please sign in to comment.