Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit

Permalink
Fix pypi trigger conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
sarlinpe committed Jan 3, 2022
1 parent bb13974 commit 81319a2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/build-new.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ on:
pull_request:
types: [ assigned, opened, synchronize, reopened ]
release:
types: [published]
types: [published, edited]
workflow_dispatch:
create:

jobs:
linux-build:
Expand Down Expand Up @@ -40,7 +41,7 @@ jobs:
- name: Publish package
# We publish the wheel to pypi when a new tag is pushed,
# either by creating a new GitHub release or explictly with `git tag`
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
if: ${{ github.event_name == 'release' || startsWith(github.ref, 'refs/tags') }}
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
Expand Down Expand Up @@ -68,7 +69,7 @@ jobs:
name: pycolmap-${{ matrix.pyversion }}-${{ matrix.os }}
path: ./wheelhouse/pycolmap-*.whl
- name: Publish package
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
if: ${{ github.event_name == 'release' || startsWith(github.ref, 'refs/tags') }}
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
Expand Down

0 comments on commit 81319a2

Please sign in to comment.