Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 19 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,24 @@ jobs:
gitignore_file: '.update_repo_gitignore'
show_author: true #在更新日志中加入作者

- name: Check release version
id: release-version
shell: pwsh
run: |
- name: Check release version
id: release-version
shell: pwsh
env:
REF_NAME: ${{ github.ref_name }}
run: |
$tag = $env:REF_NAME
$isRelease = $tag -match '^v?\d+\.\d+\.\d+$'
"is_release=$($isRelease.ToString().ToLowerInvariant())" >> $env:GITHUB_OUTPUT
Write-Host "Release version: $isRelease"
Write-Host "Release version: $isRelease"

- name: Build with PyAppify Action
if: steps.release-version.outputs.is_release == 'true'
id: build-app
uses: ok-oldking/pyappify-action@master #使用pyappify打包exe
env:
Expand All @@ -87,7 +104,7 @@ jobs:

- name: Release
uses: softprops/action-gh-release@v3
if: startsWith(github.ref, 'refs/tags/')
if: steps.release-version.outputs.is_release == 'true' && startsWith(github.ref, 'refs/tags/')
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
Expand All @@ -109,7 +126,7 @@ jobs:
files: pyappify_dist/*

- name: Trigger MirrorChyanUploading
if: startsWith(github.ref, 'refs/tags/')
if: steps.release-version.outputs.is_release == 'true' && startsWith(github.ref, 'refs/tags/')
shell: bash
run: |
gh workflow run --repo $GITHUB_REPOSITORY mirrorchyan_release.yml -f tag=${{ github.ref_name }}
Expand Down
5 changes: 5 additions & 0 deletions src/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,4 +196,9 @@ def blur_area(width, height):
# ['src.ui.MyTab', 'MyTab'], #可选, 自定义UI, 显示在侧边栏
],
"scene": ["src.scene.NTEScene", "NTEScene"],
'update_pyappify': {
'to_version': '1.1.3',
'zip_url': 'https://github.com/BnanZ0/ok-nte/releases/download/v0.0.53/ok-nte-win32.zip',
'sha256': '2d7aef33111d0db8f722dc69af528f6bf29df2b5411010dc9bea1c646eec22ce',
}
}
Loading