Skip to content

Commit

Permalink
release event
Browse files Browse the repository at this point in the history
  • Loading branch information
mar-heaven committed Apr 1, 2021
1 parent 9d395b3 commit e4632a1
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
name: Publish Python 🐍 distributions 📦 to PyPI and TestPyPI

on:
# Trigger the workflow on push or pull request,
# but only for the main branch
push:
branches:
- master
release:
types:
- published

jobs:
build-n-publish:
Expand All @@ -30,7 +28,6 @@ jobs:
--sdist
--outdir dist/
- name: Publish distribution 📦 to Test PyPI
if: startsWith(github.ref, 'refs/tags/release/')
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
Expand Down

0 comments on commit e4632a1

Please sign in to comment.