nICEnnnnnnnLee / action-gitee-release

:octocat: GitHub Action for create release and upload assets on **Gitee**.
MIT License
3 stars 1 forks source link

action-gitee-release

在Gitee项目发布release(可以上传附件)

示例

仅创建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

创建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
    gitee_upload_retry_times:  3
    gitee_file_name: 文件名称
    gitee_file_path: 文件本地路径

创建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
    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