Skip to content

Commit

Permalink
✨ 修正工作流
Browse files Browse the repository at this point in the history
  • Loading branch information
snowykami committed Aug 18, 2024
1 parent 0b76313 commit fd4d680
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 19 deletions.
18 changes: 0 additions & 18 deletions .github/workflows/pypi-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,5 @@ jobs:

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

- name: Get current version from PyPI
id: get_pypi_version
run: |
PACKAGE_NAME=$(pdm info | grep 'Name:' | awk '{print $2}')
CURRENT_VERSION=$(pdm info | grep 'Version:' | awk '{print $2}')
PYPI_VERSION=$(curl -s https://pypi.org/pypi/$PACKAGE_NAME/json | jq -r '.info.version')
echo "PACKAGE_NAME=$PACKAGE_NAME" >> $GITHUB_ENV
echo "CURRENT_VERSION=$CURRENT_VERSION" >> $GITHUB_ENV
echo "PYPI_VERSION=$PYPI_VERSION" >> $GITHUB_ENV
- name: Check if versions are different
id: check_versions
run: |
if [ "$CURRENT_VERSION" != "$PYPI_VERSION" ]; then
echo "versions_different=true" >> $GITHUB_ENV
else
echo "versions_different=false" >> $GITHUB_ENV
- name: Publish package distributions to PyPI
run: pdm publish
2 changes: 1 addition & 1 deletion liteyuki/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@
"logger",
]

__version__ = "6.3.6"
__version__ = "6.3.7" # 测试版本号


0 comments on commit fd4d680

Please sign in to comment.