Skip to content

Commit

Permalink
update: trigger on push to master with v tag
Browse files Browse the repository at this point in the history
  • Loading branch information
gitronald committed Aug 26, 2024
1 parent 22d181f commit a415d26
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,11 @@ name: Python Package Release
on:
push:
branches:
- master # or your release branch
tags:
- 'v*' # Trigger workflow on version tags e.g., v1.0, v2.0

- master

jobs:
build-and-publish:
if: startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -25,10 +23,6 @@ jobs:
python -m pip install setuptools wheel twine
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Run tests
run: |
echo "Running tests" # Placeholder for test commands
- name: Build package
run: |
python setup.py sdist bdist_wheel
Expand Down

0 comments on commit a415d26

Please sign in to comment.