Skip to content

Commit

Permalink
Add a build manifest to publish a release
Browse files Browse the repository at this point in the history
  • Loading branch information
WhyNotHugo committed Nov 6, 2023
1 parent e3cda55 commit 38017a2
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions publish-release.yaml
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/*

0 comments on commit 38017a2

Please sign in to comment.