fix(version) #55
Workflow file for this run
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
name: app-build-action | |
#推送Tag时触发 | |
on: | |
push: | |
tags: | |
- "*" | |
jobs: | |
build-mac-ios-android: | |
runs-on: macos-latest | |
permissions: | |
contents: write | |
steps: | |
#签出代码 | |
- uses: actions/checkout@v3 | |
with: | |
ref: master | |
#读取版本信息 | |
- name: Read version | |
id: version | |
uses: juliangruber/read-file-action@v1 | |
with: | |
path: assets/version.json | |
- name: Echo version | |
run: echo "${{ fromJson(steps.version.outputs.content).version }}" | |
- name: Echo version content | |
run: echo "${{ fromJson(steps.version.outputs.content).version_desc }}" | |
#上传至Release | |
- name: Upload Release | |
uses: juliangruber/read-file-action@v1 | |
with: | |
path: assets/version.json | |
- name: Echo version | |
run: echo "${{ fromJson(steps.version.outputs.content).version }}" | |
- name: Echo version content | |
run: echo "${{ fromJson(steps.version.outputs.content).version_desc }}" | |
- name: Upload Release | |
uses: ncipollo/release-action@v1 | |
with: | |
allowUpdates: true | |
artifactErrorsFailBuild: false | |
name: "${{ fromJson(steps.version.outputs.content).version }}" | |
body: "${{ fromJson(steps.version.outputs.content).version_desc }}" | |
prerelease: ${{ fromJson(steps.version.outputs.content).prerelease }} | |
token: ${{ secrets.TOKEN }} | |
#完成 | |
- run: echo "🍏 This job's status is ${{ job.status }}." |