We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d46b51 commit eea08f1Copy full SHA for eea08f1
.github/workflows/test.yaml
@@ -36,6 +36,7 @@ jobs:
36
37
publish:
38
name: Publish to PyPI
39
+ if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
40
runs-on: ubuntu-latest
41
42
needs: test
@@ -52,7 +53,7 @@ jobs:
52
53
54
- name: Insert version number
55
run: |
- version=$(echo $GITHUB_REF | cut -d/ -f3)
56
+ version=$(echo $GITHUB_REF | sed -e 's#refs/tags/v##')
57
sed -i -Ee "/__version/s/[0-9.]+/$version/" src/lingua/__init__.py
58
59
- name: Build wheel
@@ -63,7 +64,6 @@ jobs:
63
64
flit build
65
66
- name: Publish to PyPI
- if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
67
uses: pypa/gh-action-pypi-publish@release/v1
68
with:
69
user: __token__
0 commit comments