Skip to content

Commit

Permalink
fix the pipeline and text and dependancy
Browse files Browse the repository at this point in the history
  • Loading branch information
antoinebou12 committed Sep 8, 2023
1 parent 42fca70 commit 4ca10f3
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/hacs-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ jobs:
with:
category: "Integration"
continue-on-error: true
- uses: "home-assistant/actions/hassfest@master"
- uses: "home-assistant/actions/hassfest@v1"
continue-on-error: true
52 changes: 52 additions & 0 deletions .github/workflows/release.yml
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
1 change: 0 additions & 1 deletion hacs.json
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"]
}
6 changes: 2 additions & 4 deletions requirements.txt
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

0 comments on commit 4ca10f3

Please sign in to comment.