forked from neilzilla/hass-renpho
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix the pipeline and text and dependancy
- Loading branch information
1 parent
42fca70
commit 4ca10f3
Showing
4 changed files
with
55 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
name: Create Release | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v*' | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Generate Changelog | ||
id: changelog | ||
run: | | ||
export CHANGELOG=$(git log $(git describe --tags --abbrev=0)..HEAD --pretty="- %s") | ||
echo "CHANGELOG=$CHANGELOG" >> $GITHUB_ENV | ||
- name: Create Release | ||
id: create_release | ||
uses: actions/create-release@v1 | ||
with: | ||
tag_name: ${{ github.ref }} | ||
release_name: Release ${{ github.ref }} | ||
body: ${{ env.CHANGELOG }} | ||
draft: false | ||
prerelease: false | ||
|
||
- name: Zip custom_components/renpho directory | ||
run: zip -r renpho_custom_component.zip custom_components/renpho | ||
|
||
- name: Zip complete code | ||
run: zip -r complete_code.zip . | ||
|
||
- name: Upload custom_components/renpho ZIP to Release | ||
uses: actions/upload-release-asset@v1 | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: ./renpho_custom_component.zip | ||
asset_name: renpho_custom_component.zip | ||
asset_content_type: application/zip | ||
|
||
- name: Upload complete code ZIP to Release | ||
uses: actions/upload-release-asset@v1 | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: ./complete_code.zip | ||
asset_name: complete_code.zip | ||
asset_content_type: application/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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
{ | ||
"name": "Renpho Weight Scale Integration", | ||
"documentation": "https://github.com/antoinebou12/hass_renpho/blob/master/README.md", | ||
"codeowners": ["antoinebou12"], | ||
"country": ["ca"] | ||
} |
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 |
---|---|---|
@@ -1,5 +1,3 @@ | ||
pycryptodome>=3.3.1 | ||
pycrypto | ||
requests==2.26.0 | ||
pycrypto==2.6.1 | ||
aiohttp | ||
requests>=2.26.0 | ||
aiohttp>=3.6.1 |