We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e53ac9b commit 9814807Copy full SHA for 9814807
1 file changed
.github/workflows/build-and-publish-to-pypi.yml
@@ -3,6 +3,7 @@ on:
3
push:
4
tags:
5
- 'v*'
6
+ workflow_dispatch:
7
jobs:
8
build-and-publish:
9
runs-on: ubuntu-latest
@@ -11,7 +12,8 @@ jobs:
11
12
uses: actions/checkout@v3
13
with:
14
fetch-depth: 1
- fetch-tags: true
15
+ - name: Fetch tags
16
+ run: git fetch --tags --depth=1
17
- name: Set up Python
18
uses: actions/setup-python@v4
19
@@ -20,6 +22,10 @@ jobs:
20
22
run: |
21
23
python -m pip install --upgrade pip
24
python -m pip install build twine setuptools_scm
25
+ - name: Check version
26
+ run: |
27
+ python -m setuptools_scm
28
+ exit 1
29
- name: Build the package
30
31
python -m build
0 commit comments