Skip to content

Commit

Permalink
use --follow-tags in post-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
reynoldsnlp committed Nov 20, 2023
1 parent 02d4610 commit 687471a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ jobs:

- name: Show artifact directory structure
run: find ${{ steps.download.outputs.download-path }}
run: echo 'Github event info:'
run: echo ${{github.event_name}}
run: echo ${{github.event.ref}}

- name: Publish distribution 📦 to Test PyPI
# upload to Test PyPI on every tag NOT starting with 'v'
Expand Down
2 changes: 1 addition & 1 deletion scripts/post-commit
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,5 @@ if '\ndiff --git a/VERSION ' in log:
'done if this has already been successfully built '
'and deployed on Test PyPI (y/N) > ')
if response in {'Y', 'y'}:
completed = subprocess.run(['git', 'tag', f'v{log_version}'])
completed = subprocess.run(f'git tag -a v{log_version} -m "Publish v{log_version}." && git push --follow-tags', shell=True)
sys.exit(completed.returncode)

0 comments on commit 687471a

Please sign in to comment.