Skip to content

Commit

Permalink
Update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
chaaklau committed Jun 28, 2024
1 parent 93aed78 commit b3e09dd
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,11 @@ jobs:
run: |
python -m unittest tests/test_judge.py
- name: Update version in setup.py
run: |
version=$(python -c "exec(open('cantonesedetect/version.py').read()); print(__version__)")
sed -i "s/version=.*/version='$version',/" setup.py
- name: deps
run: python -m pip install -U build

- name: Build and publish
run: |
python setup.py sdist bdist_wheel
twine upload dist/*
- name: build
run: python -m build

- name: mint API token
id: mint-token
Expand Down

0 comments on commit b3e09dd

Please sign in to comment.