Skip to content

Commit

Permalink
Update action.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Saber2pr committed Feb 16, 2022
1 parent 53ec86f commit 922f3b1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,13 @@ runs:
- uses: actions/checkout@v2
with:
fetch-depth: 0
ref: gh-pages

- run: |
# config
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
# git checkout
# create blog, collect md files
mkdir blog && ls -d */ | grep -v "blog" | xargs -I {} cp -r ./{} ./blog/{}
Expand All @@ -36,3 +37,7 @@ runs:
git push origin gh-pages
shell: bash
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
publish_dir: ./

0 comments on commit 922f3b1

Please sign in to comment.