在Gitee项目发布release(可以上传附件)
- name: Test create release
id: create_release
uses: nicennnnnnnlee/action-gitee-release@v1.0.5
with:
gitee_owner: Gitee用户名
gitee_repo: Gitee项目名
gitee_token: ${{ secrets.gitee_token }}
gitee_tag_name: v1.0.0
gitee_release_name: Test v1.0.0
gitee_release_body: Release 描述
gitee_target_commitish: master
- name: Test create release
id: create_release
uses: nicennnnnnnlee/action-gitee-release@v1.0.5
with:
gitee_owner: Gitee用户名
gitee_repo: Gitee项目名
gitee_token: ${{ secrets.gitee_token }}
gitee_tag_name: v1.0.0
gitee_release_name: Test v1.0.0
gitee_release_body: Release 描述
gitee_target_commitish: master
gitee_upload_retry_times: 3
gitee_file_name: 文件名称
gitee_file_path: 文件本地路径
- name: Test create release
id: create_release
uses: nicennnnnnnlee/action-gitee-release@v1.0.5
with:
gitee_owner: Gitee用户名
gitee_repo: Gitee项目名
gitee_token: ${{ secrets.gitee_token }}
gitee_tag_name: v1.0.0
gitee_release_name: Test v1.0.0
gitee_release_body: Release 描述
gitee_target_commitish: master
gitee_upload_retry_times: 3
gitee_files: |
文件路径1
文件路径2
- name: Test create release
id: create_release
uses: nicennnnnnnlee/action-gitee-release@v1.0.5
with:
gitee_owner: Gitee用户名
gitee_repo: Gitee项目名
gitee_token: ${{ secrets.gitee_token }}
gitee_tag_name: v1.0.0
gitee_release_name: Test v1.0.0
gitee_release_body: Release 描述
gitee_target_commitish: master
gitee_upload_retry_times: 3
- name: Test upload file to exist release
uses: nicennnnnnnlee/action-gitee-release@v1.0.5
with:
gitee_owner: Gitee用户名
gitee_repo: Gitee项目名
gitee_token: ${{ secrets.gitee_token }}
gitee_release_id: ${{ steps.create_release.outputs.release-id }}
gitee_file_name: 文件名称1
gitee_file_path: 文件本地路径1
gitee_upload_retry_times: 3
- name: Test create release
id: create_release
uses: nicennnnnnnlee/action-gitee-release@v1.0.5
with:
gitee_owner: Gitee用户名
gitee_repo: Gitee项目名
gitee_token: ${{ secrets.gitee_token }}
gitee_tag_name: v1.0.0
gitee_release_name: Test v1.0.0
gitee_release_body: Release 描述
gitee_target_commitish: master
- name: Test upload file to exist release
uses: nicennnnnnnlee/action-gitee-release@v1.0.5
with:
gitee_owner: Gitee用户名
gitee_repo: Gitee项目名
gitee_token: ${{ secrets.gitee_token }}
gitee_release_id: ${{ steps.create_release.outputs.release-id }}
gitee_upload_retry_times: 3
gitee_files: |
文件路径1
文件路径2
gitee_owner
:Gitee 用户名, 项目URL中可获取gitee_repo
:Gitee 项目名, 项目URL中可获取gitee_token
:Gitee api tokengitee_tag_name
:Gitee Tag 名称, 提倡以v字母为前缀做为Release名称,例如v1.0或者v2.3.4gitee_release_name
:Gitee release 名称gitee_release_body
:Gitee release 描述gitee_target_commitish
:Gitee 分支名称或者commit SHAgitee_files
:上传的附件列表(多个文件)。此处的文件路径支持规则匹配,参考python-globgitee_file_name
:上传的附件名称(单个文件)gitee_file_path
:上传的附件的本地路径(单个文件)gitee_release_id
:上传附件对应的release的id。该值存在的话,不会再去尝试创建release。gitee_upload_retry_times
:上传附件失败后的尝试次数。默认为0,不再尝试。- 注意:Token需要以 Secrets 方式给出,以保证token不被泄露