-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: build system uploads only HACS files to prevent downloading erro…
- Loading branch information
Showing
6 changed files
with
11 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,33 +10,14 @@ concurrency: | |
cancel-in-progress: true | ||
|
||
jobs: | ||
release_zip_file: | ||
name: Publish integration zip file asset | ||
release: | ||
name: HACS release | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
steps: | ||
- name: Checkout the repository | ||
uses: actions/[email protected] | ||
|
||
- name: Setup Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.11' | ||
|
||
- name: Upgrade pip and install required tools | ||
run: | | ||
pip install --upgrade pip | ||
pip install hatch | ||
- name: Detect package version | ||
run: echo "PKG_VERSION=$(hatch version)" >> "$GITHUB_ENV" | ||
|
||
- name: Build release package (tar) | ||
run: hatch -v build -t sdist | ||
|
||
- name: Build release package (zip) | ||
run: hatch -v build -t zipped-directory | ||
uses: actions/checkout@v4 | ||
|
||
- name: Build release package (HACS) | ||
run: | | ||
|
@@ -47,6 +28,4 @@ jobs: | |
uses: softprops/[email protected] | ||
with: | ||
files: | | ||
${{ github.workspace }}/dist/econnect_metronet-$PKG_VERSION.tar.gz | ||
${{ github.workspace }}/dist/econnect_metronet-$PKG_VERSION.zip | ||
${{ github.workspace }}/custom_components/econnect_metronet/hacs_econnect_metronet.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters