Skip to content

Commit

Permalink
Add workflow_dispatch as publishing option
Browse files Browse the repository at this point in the history
  • Loading branch information
ml31415 committed Apr 19, 2024
1 parent 5ce1580 commit a2fd56d
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions .github/workflows/pypi-release.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: Build and Upload numpy-groupies to PyPI
name: Publish to PyPI
on:
workflow_dispatch:
release:
types:
- published
Expand All @@ -14,7 +15,7 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-depth: 1
- uses: actions/setup-python@v5
name: Install Python
with:
Expand All @@ -40,9 +41,6 @@ jobs:
echo "✅ Looks good"
fi
- uses: actions/upload-artifact@v4
with:
name: releases
path: dist

test-built-dist:
needs: build-artifacts
Expand All @@ -53,9 +51,6 @@ jobs:
with:
python-version: "3.11"
- uses: actions/download-artifact@v4
with:
name: releases
path: dist
- name: List contents of built dist
run: |
ls -ltrh
Expand All @@ -79,9 +74,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v4
with:
name: releases
path: dist
- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
Expand Down

0 comments on commit a2fd56d

Please sign in to comment.