update main.yml
This commit is contained in:
@@ -44,6 +44,17 @@ jobs:
|
|||||||
npm run clean
|
npm run clean
|
||||||
npm run build
|
npm run build
|
||||||
|
|
||||||
|
- name: 部署到 Gitea Page 分支
|
||||||
|
# 如果你还要把编译后的网页 push 回 Gitea 的另一个分支
|
||||||
|
run: |
|
||||||
|
cd ./public
|
||||||
|
git init
|
||||||
|
git config user.name "${{ github.actor }}"
|
||||||
|
git config user.email "${{ github.actor }}@noreply.gitea.com"
|
||||||
|
git add .
|
||||||
|
git commit -m "Deploy: ${{ github.event.head_commit.message }} [$(date +'%Y-%m-%d %H:%M:%S')]"
|
||||||
|
git push --force --quiet "http://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@git.biss.click/${{ github.repository }}.git" master:page
|
||||||
|
|
||||||
- name: 通知服务器 Hook
|
- name: 通知服务器 Hook
|
||||||
run: |
|
run: |
|
||||||
curl -k -X POST "https://45.145.229.95:40606/hook?access_key=1XJG8IvYTSZVvD5dpm86GYIpQxgxBcucULnX1MFskZSKayXU"
|
curl -k -X POST "https://45.145.229.95:40606/hook?access_key=1XJG8IvYTSZVvD5dpm86GYIpQxgxBcucULnX1MFskZSKayXU"
|
||||||
Reference in New Issue
Block a user