Skip to content

Commit

Permalink
ci(python): use directory setting
Browse files Browse the repository at this point in the history
  • Loading branch information
roggervalf committed Jul 21, 2023
1 parent a594f39 commit badab78
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,10 @@ jobs:
flake8 ./python --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Python Semantic Release
if: ${{ contains(env.commitmsg, '(python)') }}
run: |
cd python
pip install python-semantic-release
git config --global user.email "manast@taskforce.sh"
git config --global user.name "manast"
export VERSION=$(semantic-release version --print)
if [ ! -z "$VERSION" ]; then
GH_TOKEN=${{ secrets.GITHUB_TOKEN }} semantic-release publish
fi
uses: python-semantic-release/python-semantic-release@master
with:
directory: ./python
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Publish package distributions to PyPI
id: pypi-publish
if: ${{ contains(env.commitmsg, '(python)') }}
Expand Down

0 comments on commit badab78

Please sign in to comment.