update introduction #46
This file contains hidden or 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 | |
# 代码提交到main分支时触发github action | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Git Configuration | |
run: | | |
git config --global core.quotePath false | |
git config --global core.autocrlf false | |
git config --global core.safecrlf true | |
git config --global core.ignorecase false | |
- name: Setup Hugo | |
uses: peaceiris/actions-hugo@v3 | |
with: | |
hugo-version: "latest" | |
extended: true | |
- name: Build Web | |
run: hugo -D | |
- name: Deploy Web | |
uses: peaceiris/actions-gh-pages@v4 | |
with: | |
PERSONAL_TOKEN: ${{ secrets.HUGO_AUTO_BLOG }} | |
EXTERNAL_REPOSITORY: skyhaibara/skyhaibara.github.io | |
PUBLISH_BRANCH: main | |
PUBLISH_DIR: ./public | |
commit_message: auto deploy |