run: bash ./update-blog.sh --baseURL https://hayao0819.github.io/hayao.fascode.net/blog/
#run: hugo --minify -D
- - name: Deploy for GitHub Pages
- uses: peaceiris/actions-gh-pages@v3
- with:
- github_token: ${{ secrets.GITHUB_TOKEN }}
- publish_branch: gh-pages
- publish_dir: ./
-
- main-repo:
- runs-on: ubuntu-latest
- steps:
- - name: Checkout
- uses: actions/checkout@v2
- with:
- submodules: true
- fetch-depth: 0
-
- name: Setup git repogitories
env:
GH_PAGES_REPO_DEPLOY_KEY: ${{ secrets.GH_PAGES_REPO_DEPLOY_KEY }}
git config --global user.email "hayao@fascode.net"
git config --global user.name "hayao"
git config remote.origin.url "git@github.com:Hayao0819/hayao0819.github.io.git"
- git checkout gh-pages
- name: Deploy pages
env:
git push origin master
fi
+ - name: Deploy for GitHub Pages
+ uses: peaceiris/actions-gh-pages@v3
+ with:
+ github_token: ${{ secrets.GITHUB_TOKEN }}
+ publish_branch: gh-pages
+ publish_dir: ./
+
+
+