Skip to content

Commit

Permalink
Always push
Browse files Browse the repository at this point in the history
  • Loading branch information
ad-m committed Sep 23, 2023
1 parent d177e94 commit adba4c5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: Publish Python 🐍 package

on:
push:
branches:
- '*'
tags:
- 'v*'

Expand All @@ -20,14 +22,13 @@ jobs:
run: make build_pkg

- name: Publish distribution 📦 to PyPI
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.pypi_password }}

- name: Publish distribution 📦 to Test PyPI
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
Expand Down

0 comments on commit adba4c5

Please sign in to comment.