8000 Fix release by madhur-tandon · Pull Request #152 · pyscript/pyscript-cli · GitHub
[go: up one dir, main page]

Skip to content

Fix release #152

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up f 8000 or GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Aug 26, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add check_version env
  • Loading branch information
madhur-tandon committed Aug 26, 2024
commit 6018a9545716dbbaebdf2a0cebeffa6c59d7278f
5 changes: 2 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,9 @@ jobs:
with:
python-version: 3.11

- name: Install dependencies
run: pip install -r requirements.txt

- name: Build and package
env:
CHECK_VERSION: "true"
run: |
pip install wheel
python setup.py sdist bdist_wheel
Expand Down
13 changes: 7 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,13 @@ def read_version():


def check_tag_version():
tag = os.getenv("GITHUB_REF")
expected_version = read_version()
if tag != f"refs/tags/{expected_version}":
raise Exception(
f"Tag '{tag}' does not match the expected " f"version '{expected_version}'"
)
if os.getenv("CHECK_VERSION", "false").lower() == "true":
tag = os.getenv("GITHUB_REF")
expected_version = read_version()
if tag != f"refs/tags/{expected_version}":
raise Exception(
f"Tag '{tag}' does not match the expected " f"version '{expected_version}'"
)


with open("README.md") as fh:
Expand Down
Loading
0