diff --git a/.github/workflows/g.yaml b/.github/workflows/g.yaml index c5f88d2..2e0dd0e 100644 --- a/.github/workflows/g.yaml +++ b/.github/workflows/g.yaml @@ -35,14 +35,15 @@ jobs: - name: Checkout target repository uses: actions/checkout@v3 with: - repository: owner/target-repo # 替换为目标仓库的 owner/repo - path: target-repo + repository: jkjoy/photos # 替换为目标仓库的 owner/repo + path: / token: ${{ secrets.GITHUB_TOKEN }} # 使用 GitHub Token 进行认证 # 步骤 6: 将生成的文件复制到目标仓库 - name: Copy generated files to target repository run: | - cp -r generated_files/ target-repo/ # 替换为你的生成文件路径和目标仓库路径 + cp -r index/ / + cp -r assets/ / # 步骤 7: 提交并推送更改到目标仓库 - name: Commit and push changes to target repository