File tree 1 file changed +0
-31
lines changed
1 file changed +0
-31
lines changed Original file line number Diff line number Diff line change 52
52
hexo clean
53
53
hexo bangumi -u #bilibili番剧更新
54
54
hexo generate
55
-
56
-
57
- # - name: 部署到Github
58
- # uses: JamesIves/github-pages-deploy-action@v4
59
- # with:
60
- # token: ${{ secrets.GITHUBTOKEN }}
61
- # repository-name: ningan123/ningan123.github.io
62
- # branch: main
63
- # folder: public
64
- # commit-message: "${{ github.event.head_commit.message }} $(date +\"%Z %Y-%m-%d %A %H:%M:%S\") Updated By Github Actions"
65
-
66
-
67
- # - name: Build and Deploy
68
- # # 使用专门部署 Hexo 到 GitHub pages 的 action
69
- # uses: Tit1e/hexo-deploy-github-pages-action@master
70
- # env:
71
- # PERSONAL_TOKEN: ${{ secrets.GITHUBTOKEN }} # secret 名
72
- # PUBLISH_REPOSITORY: ningan123/ningan123.github.io # 公共仓库,格式:GitHub 用户名/仓库名
73
- # BRANCH: main # 分支,根据实际填写
74
- # PUBLISH_DIR: ./public # 部署 public 目录下的文件,hexo 一般都是这个目录,可根据实际调整
75
-
76
- - name : deploy # 此处master:main 指从本地的master分支提交到远程仓库的main分支(不是博客的分支写master即可),若远程仓库没有对应分支则新建一个。如有其他需要,可以根据自己的需求更改。
77
- run : |
78
- export TZ='Asia/Shanghai'
79
- cd ./public
80
- git init
81
- git config --global user.name '${{ secrets.GITHUBUSERNAME }}'
82
- git config --global user.email '${{ secrets.GITHUBEMAIL }}'
83
- git add .
84
- git commit -m "${{ github.event.head_commit.message }} $(date +"%Z %Y-%m-%d %A %H:%M:%S") Updated By Github Actions"
85
- git push --force --quiet "https://${{ secrets.GITHUBUSERNAME }}:${{ secrets.GITHUBTOKEN }}@github.com/${{ secrets.GITHUBUSERNAME }}/${{ secrets.GITHUBUSERNAME }}.github.io.git" master:main # GitHub配置
You can’t perform that action at this time.
0 commit comments