Skip to content

Commit

Permalink
ci: enable version check
Browse files Browse the repository at this point in the history
  • Loading branch information
plusvic committed Apr 29, 2024
1 parent 252902e commit ec19adb
Showing 1 changed file with 11 additions and 16 deletions.
27 changes: 11 additions & 16 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
name: Release
on:
push:
create:
tags:
- 'v*'
Expand Down Expand Up @@ -107,14 +106,14 @@ jobs:
with:
toolchain: stable

#- name: Check version number
# shell: bash
# run: |
# set -ex
# version=`cargo pkgid --manifest-path lib/Cargo.toml | cut -d "@" -f2`
# if [ "${{ github.ref_name }}" != "v$version" ]; then
# exit 1
# fi
- name: Check version number
shell: bash
run: |
set -ex
version=`cargo pkgid --manifest-path lib/Cargo.toml | cut -d "@" -f2`
if [ "${{ github.ref_name }}" != "v$version" ]; then
exit 1
fi
- name: Install Python
uses: actions/setup-python@v4
Expand Down Expand Up @@ -207,13 +206,9 @@ jobs:
pattern: pypi-*
merge-multiple: true
path: dist


#- name: Publish package distributions to PyPI
# uses: pypa/gh-action-pypi-publish@release/v1

- name: Publish package distributions to TestPyPI
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/
skip-existing: true
#repository-url: https://test.pypi.org/legacy/
skip-existing: true

0 comments on commit ec19adb

Please sign in to comment.