This repository has been archived by the owner on Dec 19, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
71f6b82
commit 9cd9ca1
Showing
2 changed files
with
28 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,36 +24,37 @@ jobs: | |
with: | ||
name: Artifacts | ||
path: ${{ env.PACK_NAME }}.opk | ||
|
||
- name: 读取当前版本号 | ||
id: version | ||
uses: ashley-taylor/[email protected] | ||
with: | ||
path: ./${{ env.PACK_NAME }}/app.json | ||
property: version | ||
|
||
# - name: 读取描述文件(若有) | ||
# id: description | ||
# uses: juliangruber/read-file-action@v1 | ||
# with: | ||
# path: ./description.txt | ||
- name: 读取描述文件(若有) | ||
id: Changelog | ||
uses: juliangruber/read-file-action@v1 | ||
with: | ||
path: ./Changelog | ||
|
||
#- name: 创建GitHub Release | ||
# id: create_release | ||
# uses: actions/create-release@latest | ||
# env: | ||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
# with: | ||
# tag_name: v${{steps.version.outputs.value}} | ||
# release_name: v${{steps.version.outputs.value}} | ||
# # body: {{steps.description.outputs.content}} | ||
# draft: true | ||
# prerelease: false | ||
#- name: 上传opk文件 | ||
# uses: actions/[email protected] | ||
# env: | ||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
# with: | ||
# upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
# asset_path: ${{ env.PACK_NAME }}.opk | ||
# asset_name: ${{ env.PACK_NAME }}.opk | ||
# asset_content_type: application/zip | ||
- name: 创建GitHub Release | ||
id: create_release | ||
uses: actions/create-release@latest | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: v${{steps.version.outputs.value}} | ||
release_name: v${{steps.version.outputs.value}} | ||
body: {{steps.Changelog.outputs.content}} | ||
draft: true | ||
prerelease: false | ||
- name: 上传opk文件 | ||
uses: actions/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: ${{ env.PACK_NAME }}.opk | ||
asset_name: ${{ env.PACK_NAME }}.opk | ||
asset_content_type: application/zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
0.1.0 2023-04-21 | ||
================ |