Skip to content

Commit

Permalink
Merge pull request #4 from deepgram/sr/setting-up-release
Browse files Browse the repository at this point in the history
updating release action
  • Loading branch information
SandraRodgers authored Nov 7, 2023
2 parents cc41682 + b183cc3 commit 9293e38
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# separate terms of service, privacy policy, and support
# documentation.

name: Upload Python Package
name: Release

on:
release:
Expand Down Expand Up @@ -34,6 +34,10 @@ jobs:
# Determine the new version from the release tag (e.g., "v1.2.3")
NEW_VERSION=$(echo "${{ github.ref }}" | sed 's/^refs\/tags\///')
# Configure Git identity
git config --global user.email "[email protected]"
git config --global user.name "Deepgram"
# Update the setup.py file with the new version
sed -i "s/VERSION = .*/VERSION = \"$NEW_VERSION\"/" setup.py
Expand All @@ -42,6 +46,8 @@ jobs:
git push
- name: Build package
run: python -m build
- name: Install twine
run: python -m pip install --upgrade twine
- name: Publish package
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
with:
Expand Down

0 comments on commit 9293e38

Please sign in to comment.