Skip to content

Commit

Permalink
updating version to 0.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
ronnnnnnnnnnnnn committed Aug 24, 2024
1 parent ac0a7e1 commit db8a3cd
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 14 deletions.
32 changes: 20 additions & 12 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,18 @@ on:
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Cache pip
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
Expand All @@ -26,7 +31,9 @@ jobs:
needs: build
runs-on: ubuntu-latest
if: github.event_name == 'release' && github.event.action == 'published'
environment: release
permissions:
id-token: write
contents: read
steps:
- uses: actions/checkout@v4
Expand All @@ -41,11 +48,11 @@ jobs:
- name: Build package
run: python -m build
- name: Publish to TestPyPI
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.TESTPYPI_API_TOKEN }}
run: |
twine upload --repository testpypi dist/*
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.TESTPYPI_API_TOKEN }}
repository-url: https://test.pypi.org/legacy/
- name: Verify installation from TestPyPI
run: |
python -m venv test-env
Expand All @@ -57,7 +64,9 @@ jobs:
needs: [build, publish-test]
runs-on: ubuntu-latest
if: github.event_name == 'release' && github.event.action == 'published'
environment: release
permissions:
id-token: write
contents: read
steps:
- uses: actions/checkout@v4
Expand All @@ -72,11 +81,10 @@ jobs:
- name: Build package
run: python -m build
- name: Upload to PyPI
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: |
twine upload dist/*
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
- name: Upload Release Assets
uses: actions/upload-release-asset@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "hatchling.build"

[project]
name = "etekcity_esf551_ble"
version = "0.1.2"
version = "0.1.3"
authors = [
{ name="Ron", email="ronnnnnnn@gmail.com" },
]
Expand Down
2 changes: 1 addition & 1 deletion src/etekcity_esf551_ble/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
"IMPEDANCE_KEY",
"WEIGHT_KEY",
]
__version__ = "0.1.2"
__version__ = "0.1.3"

0 comments on commit db8a3cd

Please sign in to comment.