Skip to content

Commit 3b69777

Browse files
committed
add testing back to pipeline
1 parent 7650701 commit 3b69777

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/python-package.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ on:
1515
- 'tests/**'
1616
- 'pyproject.toml'
1717
- '.github/workflows/python-package.yml'
18+
workflow_dispatch:
1819

1920
jobs:
2021
build-lint-unit-test:
@@ -38,7 +39,7 @@ jobs:
3839
release:
3940
runs-on: ubuntu-latest
4041
needs: [build-lint-unit-test]
41-
if: github.event_name == 'push' && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main')
42+
if: github.event_name == 'workflow_dispatch' || (github.event_name == 'push' && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main'))
4243
environment:
4344
name: pypi
4445
url: https://pypi.org/p/nisystemlink-examples
@@ -62,7 +63,7 @@ jobs:
6263
pip install python-semantic-release==7.34.6
6364
git config --global user.name "github-actions"
6465
git config --global user.email "github-actions[bot]@users.noreply.github.com"
65-
semantic-release version
66+
semantic-release version --define=branch=${{ github.ref_name }}
6667
env:
6768
GH_TOKEN: ${{secrets.GH_REPO_TOKEN}}
6869
- name: Build package

0 commit comments

Comments
 (0)