diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 99713f1..5b29473 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -28,5 +28,5 @@ jobs: - name: Push Sites to Another Repository env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: ./publish.sh ${{ secrets.GITHUB_TOKEN }} + PASSWORD: ${{ secrets.PASSWORD }} + run: ./publish.sh diff --git a/publish.sh b/publish.sh index f4a8044..936fe86 100755 --- a/publish.sh +++ b/publish.sh @@ -1,5 +1,5 @@ # 设置目标仓库的 URL 和分支 -REPO_URL="https://${GITHUB_TOKEN}@github.com/LJHG/ljhg.github.io.git" +REPO_URL="https://${PASSWORD}@github.com/LJHG/ljhg.github.io.git" BRANCH="master" # 使用 master 作为分支名 # 检查并创建 mysite 文件夹(在父级目录)