mirror of
https://github.com/eryajf/learning-weekly.git
synced 2025-09-26 17:51:12 +08:00

- 删除了 .cnb.yml 文件中的 set token 步骤 - 该步骤使用了 tencentcom/git-set-credential 镜像来设置 Git 凭证 - 移除这一步骤可能是因为不再需要使用 token 进行身份验证
27 lines
835 B
YAML
27 lines
835 B
YAML
main:
|
|
push:
|
|
- ifModify:
|
|
- "!(learning-weekly.xml)"
|
|
stages:
|
|
- name: generate rss
|
|
script: |
|
|
./gorss --root ./docs > learning-weekly.xml
|
|
|
|
- name: commit
|
|
image: tencentcom/git-commit:latest
|
|
settings:
|
|
add:
|
|
- learning-weekly.xml
|
|
commitMessage: "commit by ci"
|
|
pushCurrent: true
|
|
|
|
- name: sync to github
|
|
image: tencentcom/git-sync
|
|
imports: https://cnb.cool/eryajf/build-env/-/blob/main/env.yaml
|
|
settings:
|
|
target_url: https://github.com/eryajf/Learning-Weekly.git
|
|
auth_type: https
|
|
git_email: 'github-actions[bot]@users.noreply.github.com'
|
|
username: ${GIT_USERNAME}
|
|
password: ${GIT_ACCESS_TOKEN}
|
|
branch: main |