Skip to content

Commit dac94fb

Browse files
committed
create edition release and upload src log.
1 parent 1181661 commit dac94fb

File tree

2 files changed

+56
-7
lines changed

2 files changed

+56
-7
lines changed

.github/workflows/publish-github-release.yml

Lines changed: 29 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,10 @@ jobs:
3232
./compile-any.sh build
3333
./compile-any.sh lipo
3434
- name: Zip macos libs
35-
run: |
35+
run: |
36+
cd build/src/macos
37+
ls | awk -F ' ' '{printf "echo %s\n echo -------------\ngit -C %s log -n 1 | cat\n",$0,$0}' | bash > ../macos-src-log.md
38+
cd - >/dev/null
3639
cd build/product/macos/universal
3740
zip -rq macos-universal.zip ./*
3841
- name: do compile ios libs
@@ -44,17 +47,20 @@ jobs:
4447
./compile-any.sh build
4548
./compile-any.sh lipo
4649
- name: Zip ios libs
47-
run: |
50+
run: |
51+
cd build/src/ios
52+
ls | awk -F ' ' '{printf "echo %s\n echo -------------\ngit -C %s log -n 1 | cat\n",$0,$0}' | bash > ../ios-src-log.md
53+
cd - >/dev/null
4854
cd build/product/ios/universal
4955
zip -rq ios-universal.zip ./*
50-
- name: Create Release
56+
- name: Create ${{ env.EDITION }} Release
5157
id: create_release
5258
uses: actions/create-release@v1
5359
env:
5460
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5561
with:
56-
tag_name: ${{ env.RELEASE_VERSION }}
57-
release_name: Release ${{ env.RELEASE_VERSION }}
62+
tag_name: ${{ env.EDITION }}-${{ env.RELEASE_VERSION }}
63+
release_name: Release ${{ env.EDITION }}-${{ env.RELEASE_VERSION }}
5864
draft: false
5965
prerelease: false
6066
- name: Upload macos Release Asset
@@ -75,3 +81,21 @@ jobs:
7581
asset_path: build/product/ios/universal/ios-universal.zip
7682
asset_name: "ios-universal-${{ env.EDITION }}-${{ env.RELEASE_VERSION }}.zip"
7783
asset_content_type: application/zip
84+
- name: Upload macos src md
85+
uses: actions/upload-release-asset@v1
86+
env:
87+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
88+
with:
89+
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
90+
asset_path: build/src/macos/macos-src-log.md
91+
asset_name: "macos-src-log-${{ env.EDITION }}-${{ env.RELEASE_VERSION }}.md"
92+
asset_content_type: application/text
93+
- name: Upload ios src md
94+
uses: actions/upload-release-asset@v1
95+
env:
96+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
97+
with:
98+
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
99+
asset_path: build/src/ios/ios-src-log.md
100+
asset_name: "ios-src-log-${{ env.EDITION }}-${{ env.RELEASE_VERSION }}.md"
101+
asset_content_type: application/text

.github/workflows/publish-ijk-release.yml

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,10 @@ jobs:
3131
./compile-any.sh build
3232
./compile-any.sh lipo
3333
- name: Zip macos libs
34-
run: |
34+
run: |
35+
cd build/src/macos
36+
ls | awk -F ' ' '{printf "echo %s\n echo -------------\ngit -C %s log -n 1 | cat\n",$0,$0}' | bash > ../macos-src-log.md
37+
cd - >/dev/null
3538
cd build/product/macos/universal
3639
zip -rq macos-universal.zip ./*
3740
- name: do compile ios libs
@@ -42,7 +45,10 @@ jobs:
4245
./compile-any.sh build
4346
./compile-any.sh lipo
4447
- name: Zip ios libs
45-
run: |
48+
run: |
49+
cd build/src/ios
50+
ls | awk -F ' ' '{printf "echo %s\n echo -------------\ngit -C %s log -n 1 | cat\n",$0,$0}' | bash > ../ios-src-log.md
51+
cd - >/dev/null
4652
cd build/product/ios/universal
4753
zip -rq ios-universal.zip ./*
4854
- name: Create Release
@@ -73,3 +79,22 @@ jobs:
7379
asset_path: build/product/ios/universal/ios-universal.zip
7480
asset_name: "ios-universal-${{ env.EDITION }}-${{ env.RELEASE_VERSION }}.zip"
7581
asset_content_type: application/zip
82+
- name: Upload macos src md
83+
uses: actions/upload-release-asset@v1
84+
env:
85+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
86+
with:
87+
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
88+
asset_path: build/src/macos/macos-src-log.md
89+
asset_name: "macos-src-log-${{ env.EDITION }}-${{ env.RELEASE_VERSION }}.md"
90+
asset_content_type: application/text
91+
- name: Upload ios src md
92+
uses: actions/upload-release-asset@v1
93+
env:
94+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
95+
with:
96+
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
97+
asset_path: build/src/ios/ios-src-log.md
98+
asset_name: "ios-src-log-${{ env.EDITION }}-${{ env.RELEASE_VERSION }}.md"
99+
asset_content_type: application/text
100+

0 commit comments

Comments
 (0)