Created
January 29, 2023 13:13
This file contains 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: auto build | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- uses: actions/setup-node@master | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install Dependencie | |
run: | | |
sudo ls -a | |
sudo apt install nodejs | |
sudo npm install -g hexo | |
sudo npm install | |
sudo hexo clean | |
sudo hexo generate | |
sudo hexo deploy | |
cd public | |
export TZ='Asia/Shanghai' | |
date -R | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
personal_token: ${{ secrets.PERSONAL_TOKEN }} | |
external_repository: xxxx/xxxx.github.io | |
publish_dir: ./public | |
cname: xxxxxxxx | |
publish_branch: master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment