Skip to content

Commit

Permalink
尝试支持远程beta发布
Browse files Browse the repository at this point in the history
  • Loading branch information
cngege committed Jan 8, 2025
1 parent bdc7c7c commit 135ba11
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,15 +82,19 @@ jobs:
with:
default: v0.0.0 # Optional: Default version when tag not found

- name: env_isPrerelease
run: |
chcp 65001
$result = (${{steps.tag.outputs.tag} -like "*beta*" -as [string]).ToLower()
echo isPrerelease=$result >> $GITHUB_ENV
- name: tree
run: chcp 65001 && cmd /c tree ./build /F

run: chcp 65001 && cmd /c tree ./build /F && echo ${{needs.publish_release.outputs.isPrerelease}}
- name: Create release
#if: github.event.inputs.status != 'stable'
uses: ncipollo/release-action@v1
with:
#prerelease: false # 是否是预览版
prerelease: contains(${{steps.tag.outputs.tag}},"beta")
prerelease: ${{needs.publish_release.outputs.isPrerelease}}
tag: ${{steps.tag.outputs.tag}}
bodyFile: "ReleaseBody.md"
#name: 0
Expand Down

0 comments on commit 135ba11

Please sign in to comment.