Skip to content

Commit

Permalink
fix(ci): builder action names the package with the right version usin…
Browse files Browse the repository at this point in the history
…g `hatch version` (#21)

#21
  • Loading branch information
palazzem authored Sep 2, 2023
1 parent 8a97e22 commit b1feb65
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/building.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,16 @@ jobs:
run: hatch -v build -t sdist

- name: Log package content
run: tar -tvf dist/*.tar.gz
run: tar -tvf dist/econnect_alarm-$(hatch version).tar.gz

- name: Install the package
run: pip install dist/*.tar.gz
run: pip install dist/econnect_alarm-$(hatch version).tar.gz

- name: Test if the package is built correctly
run: python -c "import custom_components.econnect_alarm"

- name: Upload release archive
uses: actions/upload-artifact@v3
with:
name: econnect-alarm-{{ github.ref_name }}
path: dist/*.tar.gz
name: econnect-alarm-$(hatch version).tar.gz
path: dist/econnect_alarm-$(hatch version).tar.gz
2 changes: 1 addition & 1 deletion .github/workflows/linting.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ concurrency:

jobs:
econnect:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest

steps:
- name: Check out repository code
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/testing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ concurrency:

jobs:
econnect:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
env:
TOX_SKIP_ENV: lint

Expand Down

0 comments on commit b1feb65

Please sign in to comment.