Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
name: Publish to PyPI

# Publishing a GitHub release (tag vX.Y.Z) uploads linx-bbn X.Y.Z to PyPI.
# Running this workflow by hand uploads a dev build to TestPyPI instead.
# Running this workflow by hand uploads a dev build to TestPyPI instead, under the
# project name LINX there.
on:
release:
types: [published]
Expand All @@ -20,6 +21,12 @@ jobs:
with:
python-version: '3.x'

- name: Use the TestPyPI project name
if: github.event_name == 'workflow_dispatch'
run: |
sed -i 's/^name = "linx-bbn"$/name = "LINX"/' pyproject.toml
grep -q '^name = "LINX"$' pyproject.toml

- name: Build sdist and wheel
run: |
python -m pip install --upgrade pip build twine
Expand Down
Loading