Skip to content

Commit 0382a1d

Browse files
committed
update publish workflow
1 parent bcc79f6 commit 0382a1d

File tree

2 files changed

+7
-15
lines changed

2 files changed

+7
-15
lines changed

.github/workflows/publish-pypi.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
name: Publish to PyPi
22

3-
# This will publish a package to TestPyPi (and real Pypi if run on master) with a version
4-
# number generated by versioneer from the most recent tag looking like v____
5-
# TODO: maybe move this into the package job so all release-based actions are together
3+
# This will build a package with a version set by versioneer from the most recent tag matching v____
4+
# It will publish to TestPyPi, and to real Pypi *if* run on master where head has a release tag
5+
# For a live run, this should only need to be triggered by a newly published repo release.
6+
# This can also be run manually for testing
67
on:
8+
release:
9+
types: [published]
710
workflow_dispatch:
811
push:
912
tags:
@@ -23,7 +26,7 @@ jobs:
2326
- name: Build dist files
2427
run: |
2528
python -m pip install --upgrade pip
26-
pip install -e .[test] build
29+
python -m pip install -e .[test] build
2730
python -m build
2831
git describe --tag --dirty --always
2932

publish.sh

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)