File tree Expand file tree Collapse file tree 9 files changed +240
-331
lines changed Expand file tree Collapse file tree 9 files changed +240
-331
lines changed Original file line number Diff line number Diff line change 37
37
# override default build-tools version (29.0.3) -- optional
38
38
BUILD_TOOLS_VERSION : " 34.0.0"
39
39
40
+ - name : Get History
41
+ id : get_history
42
+ run : |
43
+ chmod +x history.sh
44
+ output=$(./history.sh)
45
+ echo "$output" > history.md
46
+
40
47
- name : Create Release
41
48
id : create_release
42
49
uses : actions/create-release@v1
47
54
release_name : Release ${{ github.ref }}
48
55
draft : false
49
56
prerelease : false
57
+ body_path : history.md
50
58
51
59
- name : Upload Release Asset
52
60
uses : actions/upload-release-asset@v1
56
64
upload_url : ${{ steps.create_release.outputs.upload_url }}
57
65
asset_path : ${{ steps.sign_app.outputs.signedReleaseFile }}
58
66
asset_name : my-tv-${{ github.ref_name }}.apk
59
- asset_content_type : application/vnd.android.package-archive
67
+ asset_content_type : application/vnd.android.package-archive
68
+
69
+ - name : Gitee Create Release
70
+ run : |
71
+ latest_commit=$(git rev-parse HEAD)
72
+ history=$(cat history.md)
73
+ curl -v POST https://gitee.com/api/v5/repos/${{ github.repository }}/releases \
74
+ -H "Content-Type: application/json" \
75
+ -d '{
76
+ "access_token": "${{ secrets.GITEE_ACCESS_TOKEN}}",
77
+ "tag_name": "${{ github.ref_name }}",
78
+ "name": "Release ${{ github.ref_name }}",
79
+ "body": "'"$history"'",
80
+ "prerelease": false,
81
+ "target_commitish": "'"$latest_commit"'"
82
+ }'
You can’t perform that action at this time.
0 commit comments