Skip to content

Commit 49d2e87

Browse files
authored
fix some bug (#140)
1 parent 97282e4 commit 49d2e87

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

.github/workflows/nightly-build.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
name: Nightly Build Windows Executable 🌙
22
on:
3-
push:
4-
branches: [main, master]
53
schedule:
64
# Run automatically at 00:00 UTC daily (08:00 Beijing Time)
75
- cron: '0 0 * * *'

.github/workflows/publish.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,18 @@ jobs:
7676
inputs: >-
7777
./dist/*.tar.gz
7878
./dist/*.whl
79+
- name: Check if GitHub Release exists
80+
id: check_release
81+
env:
82+
GITHUB_TOKEN: ${{ github.token }}
83+
run: |
84+
if gh release view '${{ github.ref_name }}' --repo '${{ github.repository }}' &>/dev/null; then
85+
echo "release_exists=true" >> $GITHUB_OUTPUT
86+
else
87+
echo "release_exists=false" >> $GITHUB_OUTPUT
88+
fi
7989
- name: Create GitHub Release
90+
if: steps.check_release.outputs.release_exists == 'false'
8091
env:
8192
GITHUB_TOKEN: ${{ github.token }}
8293
run: >-

0 commit comments

Comments
 (0)