Skip to content

Commit

Permalink
更新workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
phantooom committed Apr 7, 2024
1 parent 674c67b commit 14c6376
Show file tree
Hide file tree
Showing 4 changed files with 160 additions and 106 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,15 @@ jobs:
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
- name: Deploy to Github Pages
env:
GIT_NAME: phantooom
GIT_EMAIL: xiaorui.zou@gmail.com
run: |
git config --global init.defaultBranch master
git config --global user.name $GIT_NAME
git config --global user.email $GIT_EMAIL
cd public && git init && git add .
git commit -m "Site deployed by GitHub Actions"
git remote add blog https://${{ secrets.GITHUB_TOKEN }}@github.com/phantooom/phantooom.github.io.git
git push --force --quiet blog master
172 changes: 117 additions & 55 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"build": "^0.1.4",
"hexo": "^7.0.0",
"hexo-admonition": "^1.1.2",
"hexo-deployer-git": "^4.0.0",
"hexo-generator-archive": "^2.0.0",
"hexo-generator-category": "^2.0.0",
"hexo-generator-index": "^3.0.0",
Expand Down
Loading

0 comments on commit 14c6376

Please sign in to comment.