Update g.yaml

This commit is contained in:
浪子 2024-12-27 15:58:10 +08:00
parent 893a531d4f
commit b22a5d556b
1 changed files with 4 additions and 3 deletions

View File

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