Skip to content

Commit

Permalink
chore: Update ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
fkapsahili committed May 24, 2024
1 parent d8b4d17 commit 75bfb76
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,13 @@ jobs:

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: 3.11

- name: Install hatch
run: |
python -m pip install hatch
- name: Python Semantic Release
uses: python-semantic-release/python-semantic-release@master
with:
Expand All @@ -61,6 +59,10 @@ jobs:
echo "Updating version to ${{ steps.release.outputs.version }}"
hatch version ${{ steps.release.outputs.version }}
- name: Install hatch
run: |
python -m pip install hatch
- name: Publish on PyPI
if: github.event_name == 'push' && github.ref == 'refs/heads/main' && steps.release.outputs.released == 'true'
run: hatch publish
Expand Down

0 comments on commit 75bfb76

Please sign in to comment.