mirror of
https://github.com/LiteyukiStudio/LiteyukiBot.git
synced 2024-11-11 04:07:23 +08:00
🔖 liteyuki 6.3.6
This commit is contained in:
parent
9c35abc6e2
commit
aa9abde63a
12
.github/workflows/pypi-publish.yml
vendored
12
.github/workflows/pypi-publish.yml
vendored
@ -20,17 +20,5 @@ jobs:
|
||||
|
||||
- uses: pdm-project/setup-pdm@v3
|
||||
|
||||
- name: Check version
|
||||
run: |
|
||||
current_version=$(pdm show --json | jq -r '.version')
|
||||
echo "Current version: $current_version"
|
||||
package_name=$(pdm show --json | jq -r '.name')
|
||||
last_version=$(curl -s https://pypi.org/pypi/$package_name/json | jq -r '.info.version')
|
||||
echo "Last version on PyPI: $last_version"
|
||||
if [ "$current_version" == "$last_version" ]; then
|
||||
echo "Version has not been updated."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
- name: Publish package distributions to PyPI
|
||||
run: pdm publish
|
Loading…
Reference in New Issue
Block a user