Skip to content

Commit

Permalink
Now publishing to pypi only on tagged versions
Browse files Browse the repository at this point in the history
  • Loading branch information
leoisl committed Dec 5, 2022
1 parent 29ec25a commit c2c7ff0
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
name: Release

#on:
# push:
# tags:
# - '*.*.*'
on: [ push, pull_request ]
on:
push:
tags:
- '*.*.*'

jobs:
build-n-publish:
Expand All @@ -31,8 +30,8 @@ jobs:
- name: Build a binary wheel and a source tarball
shell: bash -l {0}
run: just build
# - name: Publish to PyPI
# uses: pypa/gh-action-pypi-publish@master
# with:
# user: __token__
# password: ${{ secrets.PYPI_TOKEN }}
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}

0 comments on commit c2c7ff0

Please sign in to comment.