Skip to content

Commit

Permalink
ci(release): update github release action (#156)
Browse files Browse the repository at this point in the history
* ci(release): updates to gh release action

Signed-off-by: Timothy MacDonald <[email protected]>

* ci(release): update git username

Signed-off-by: Timothy MacDonald <[email protected]>

* ci(release): add correct username and email for release

Signed-off-by: Timothy MacDonald <[email protected]>

* ci(release) fix commit user

Signed-off-by: Timothy MacDonald <[email protected]>

* ci(release): remove incorrect flag from semantic-release in GH action

Signed-off-by: Timothy MacDonald <[email protected]>

---------

Signed-off-by: Timothy MacDonald <[email protected]>
  • Loading branch information
tmac1973 authored Feb 8, 2024
1 parent 626af97 commit da1f4d8
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 10 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Publish Python Package to PyPi

on:
release:
types: [published]
on: workflow_dispatch
# release:
# types: [published]

jobs:
publish:
Expand Down
35 changes: 28 additions & 7 deletions .github/workflows/python-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,36 @@ jobs:
run: |
pipx install poetry
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: 3.11
cache: 'poetry'

- name: Install dependencies
run: |
poetry check
poetry lock --no-update
poetry install --verbose
- name: Python Semantic Major Release
if: ${{ inputs.bump_major == 'true' }}
uses: python-semantic-release/python-semantic-release@master
with:
force: "major"
github_token: ${{ secrets.GITHUB_TOKEN }}
run: |
git config --global user.name "tech-ally"
git config --global user.email [email protected]
semantic-release version --major
semantic-release publish
env:
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
PyPI_TOKEN: ${{secrets.PYPI_PASSWORD}}


- name: Python Semantic Release
if: ${{ inputs.bump_major == 'false' }}
uses: python-semantic-release/python-semantic-release@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
run: |
git config --global user.name "tech-ally"
git config --global user.email [email protected]
semantic-release publish
env:
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
PyPI_TOKEN: ${{secrets.PYPI_PASSWORD}}

0 comments on commit da1f4d8

Please sign in to comment.