Skip to content

Commit fd4d680

Browse files
committed
✨ 修正工作流
1 parent 0b76313 commit fd4d680

File tree

2 files changed

+1
-19
lines changed

2 files changed

+1
-19
lines changed

.github/workflows/pypi-publish.yml

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -16,23 +16,5 @@ jobs:
1616

1717
- uses: pdm-project/setup-pdm@v3
1818

19-
- name: Get current version from PyPI
20-
id: get_pypi_version
21-
run: |
22-
PACKAGE_NAME=$(pdm info | grep 'Name:' | awk '{print $2}')
23-
CURRENT_VERSION=$(pdm info | grep 'Version:' | awk '{print $2}')
24-
PYPI_VERSION=$(curl -s https://pypi.org/pypi/$PACKAGE_NAME/json | jq -r '.info.version')
25-
echo "PACKAGE_NAME=$PACKAGE_NAME" >> $GITHUB_ENV
26-
echo "CURRENT_VERSION=$CURRENT_VERSION" >> $GITHUB_ENV
27-
echo "PYPI_VERSION=$PYPI_VERSION" >> $GITHUB_ENV
28-
29-
- name: Check if versions are different
30-
id: check_versions
31-
run: |
32-
if [ "$CURRENT_VERSION" != "$PYPI_VERSION" ]; then
33-
echo "versions_different=true" >> $GITHUB_ENV
34-
else
35-
echo "versions_different=false" >> $GITHUB_ENV
36-
3719
- name: Publish package distributions to PyPI
3820
run: pdm publish

liteyuki/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,6 @@
3434
"logger",
3535
]
3636

37-
__version__ = "6.3.6"
37+
__version__ = "6.3.7" # 测试版本号
3838

3939

0 commit comments

Comments
 (0)