Skip to content

Commit 29a3f5c

Browse files
committed
Add manifest to manually publish releases
GitHub's CI setup is too flaky, and there's not even a mechanism for retrying an older release.
1 parent cf58852 commit 29a3f5c

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

publish-release.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
cd python-barcode
22+
python -m build --no-isolation
23+
- publish: |
24+
cd python-barcode
25+
twine upload --non-interactive dist/*

0 commit comments

Comments
 (0)