Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
LJHG committed Dec 28, 2024
1 parent 7f8b3af commit 5c651a5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
git config --global user.name "LJHG"
git config --global user.email "[email protected]"
- name: Push Sites
- name: Push Sites to Another Repository
env:
GITHUB_TOKEN: ${{ secrets.PASSWORD }}
run: ./publish.sh
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: ./publish.sh ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion publish.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# 设置目标仓库的 URL 和分支
REPO_URL="https://github.com/LJHG/ljhg.github.io.git"
REPO_URL="https://${GITHUB_TOKEN}@github.com/LJHG/ljhg.github.io.git"
BRANCH="master" # 使用 master 作为分支名

# 检查并创建 mysite 文件夹(在父级目录)
Expand Down

0 comments on commit 5c651a5

Please sign in to comment.