Skip to content

Commit

Permalink
Change deploy script
Browse files Browse the repository at this point in the history
  • Loading branch information
kanade-k-1228 committed Dec 10, 2024
1 parent 7bfe136 commit ee2da56
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/main.yml → .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
name: Convert and Deploy
name: Deploy

on:
push:
branches: [main]
branches:
- main
merge:
branches:
- main

jobs:
convert_via_pandoc:
Expand All @@ -19,8 +23,8 @@ jobs:
run: pandoc feed.yml --template .common/template.rss >> feed.rss
- name: Convert MD to HTML
run: find . -name "*index.md" | while read i; do pandoc -f markdown -t html --template=.common/template.html --toc --no-highlight --mathjax "${i}" >> "${i%.md}.html"; done
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
- name: Upload to GitHub Pages
uses: actions/upload-pages-artifact@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./
path: ./

0 comments on commit ee2da56

Please sign in to comment.