-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a build manifest to publish a release
- Loading branch information
1 parent
e3cda55
commit 38017a2
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Run this with: | ||
# hut builds submit publish-release.yaml | ||
image: archlinux | ||
packages: | ||
- python-build | ||
- python-setuptools-scm | ||
- python-wheel | ||
- twine | ||
sources: | ||
- https://github.com/pimutils/todoman | ||
secrets: | ||
- 4db20548-55bc-4769-b6fe-005b20a4efb4 # PyPI token. | ||
tasks: | ||
- check: | | ||
cd todoman | ||
git fetch --tags | ||
# Stop here unless this is a tag. | ||
git describe --exact-match --tags || complete-build | ||
- build: | | ||
cd todoman | ||
python -m build --no-isolation | ||
- publish: | | ||
cd todoman | ||
twine upload --non-interactive dist/* |