Skip to content

Commit

Permalink
fix auto release
Browse files Browse the repository at this point in the history
  • Loading branch information
robkooper committed Jul 21, 2021
1 parent 7563437 commit 187f11a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pypi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
python setup.py sdist bdist_wheel
- name: Publish distribution to PyPI
if: github.event_name == 'push' && env.BRANCH == 'master' && steps.release_info.outputs.version != 'unreleased'
if: github.event_name == 'push' && github.ref == 'refs/heads/master' && steps.release_info.outputs.version != 'unreleased'
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.pypi_password }}
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
echo "::set-output name=changelog::$changelog"
- name: create release
if: github.event_name == 'push' && env.BRANCH == 'master' && steps.release_info.outputs.version != 'unreleased'
if: github.event_name == 'push' && github.ref == 'refs/heads/master' && steps.release_info.outputs.version != 'unreleased'
uses: actions/create-release@v1
id: create_release
env:
Expand Down

0 comments on commit 187f11a

Please sign in to comment.