Skip to content

Commit

Permalink
updating ci-cd.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ronnnnnnnnnnnnn committed Aug 25, 2024
1 parent 05d0021 commit d745161
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,16 @@ jobs:
python-version: '3.12'
- name: Clean up dist folder
run: rm -rf dist/
- name: Install package and dependencies
run: |
python -m pip install --upgrade pip
pip install .
pip install build twine
- name: Extract version from _version.py
id: extract_version
run: |
VERSION=$(python -c "from src.etekcity_esf551_ble._version import __version__; print(__version__)")
VERSION=$(python -c "from etekcity_esf551_ble._version import __version__; print(__version__)")
echo "VERSION=$VERSION" >> $GITHUB_ENV
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build twine
- name: Build package
run: python -m build
- name: Upload to PyPI
Expand Down

0 comments on commit d745161

Please sign in to comment.