Skip to content

Commit

Permalink
let the workflow to be triggered on new tag
Browse files Browse the repository at this point in the history
  • Loading branch information
garegincontractor authored and garegincontractor committed Sep 22, 2023
1 parent 263f252 commit 20d056c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ on:
push:
branches:
- master
tags:
- '*'

defaults:
run:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/python-bump2version-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ jobs:
env:
TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }}
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
if: "${{ startsWith(github.ref, 'refs/tags/') }}"
if: "${{ github.ref_type == 'tag' }}"
run: |
python -m build
twine upload --repository-url https://nexus.pepstaging.com/repository/pypi-release/ dist/*
Expand Down

0 comments on commit 20d056c

Please sign in to comment.