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 cf58852 commit 29a3f5cCopy full SHA for 29a3f5c
publish-release.yaml
@@ -0,0 +1,25 @@
1
+# Run this with:
2
+# hut builds submit -f publish-release.yaml
3
+image: archlinux
4
+packages:
5
+ - python-build
6
+ - python-setuptools-scm
7
+ - python-wheel
8
+ - twine
9
+sources:
10
+ - https://github.com/WhyNotHugo/python-barcode/
11
+secrets:
12
+ - 0dd39b49-3530-4002-a197-e0ca7fc3fde7 # PyPI token.
13
+tasks:
14
+ - check: |
15
+ cd python-barcode
16
+ git fetch --tags
17
+
18
+ # Stop here unless this is a tag.
19
+ git describe --exact-match --tags || complete-build
20
+ - build: |
21
22
+ python -m build --no-isolation
23
+ - publish: |
24
25
+ twine upload --non-interactive dist/*
0 commit comments