Skip to content
This repository has been archived by the owner on Dec 19, 2023. It is now read-only.

Commit

Permalink
0.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
HsiangNianian committed Apr 21, 2023
1 parent 71f6b82 commit 9cd9ca1
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 25 deletions.
51 changes: 26 additions & 25 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 2 additions & 0 deletions Changelog
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
0.1.0 2023-04-21
================

0 comments on commit 9cd9ca1

Please sign in to comment.