Skip to content

Commit d65ac50

Browse files
committed
readme
1 parent b372d52 commit d65ac50

File tree

9 files changed

+240
-331
lines changed

9 files changed

+240
-331
lines changed

.github/workflows/build.yml

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,13 @@ jobs:
3737
# override default build-tools version (29.0.3) -- optional
3838
BUILD_TOOLS_VERSION: "34.0.0"
3939

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+
4047
- name: Create Release
4148
id: create_release
4249
uses: actions/create-release@v1
@@ -47,6 +54,7 @@ jobs:
4754
release_name: Release ${{ github.ref }}
4855
draft: false
4956
prerelease: false
57+
body_path: history.md
5058

5159
- name: Upload Release Asset
5260
uses: actions/upload-release-asset@v1
@@ -56,4 +64,19 @@ jobs:
5664
upload_url: ${{ steps.create_release.outputs.upload_url }}
5765
asset_path: ${{ steps.sign_app.outputs.signedReleaseFile }}
5866
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+
}'

0 commit comments

Comments
 (0)