Skip to content

Commit

Permalink
update paths for ci
Browse files Browse the repository at this point in the history
  • Loading branch information
vigonotion committed May 21, 2023
1 parent 8bff24c commit 431dbda
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

name: Release

on:
Expand Down Expand Up @@ -28,14 +27,14 @@ jobs:
# Pack the stadtreinigung_hamburg dir as a zip and upload to the release
- name: ZIP stadtreinigung_hamburg Dir
run: |
cd ${{ github.workspace }}/custom_components/stadtreinigung_hamburg
cd ${{ github.workspace }}/custom_components/hass_stadtreinigung_hamburg
zip stadtreinigung_hamburg.zip -r ./
- name: Upload zip to release
uses: svenstaro/upload-release-action@v1-release

with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ${{ github.workspace }}/custom_components/stadtreinigung_hamburg/stadtreinigung_hamburg.zip
file: ${{ github.workspace }}/custom_components/hass_stadtreinigung_hamburg/stadtreinigung_hamburg.zip
asset_name: stadtreinigung_hamburg.zip
tag: ${{ github.ref }}
overwrite: true
overwrite: true
4 changes: 2 additions & 2 deletions manage/update_manifest.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ def update_manifest():
version = sys.argv[index + 1]

with open(
f"{os.getcwd()}/custom_components/stadtreinigung_hamburg/manifest.json"
f"{os.getcwd()}/custom_components/hass_stadtreinigung_hamburg/manifest.json"
) as manifestfile:
manifest = json.load(manifestfile)

manifest["version"] = version

with open(
f"{os.getcwd()}/custom_components/stadtreinigung_hamburg/manifest.json", "w"
f"{os.getcwd()}/custom_components/hass_stadtreinigung_hamburg/manifest.json", "w"
) as manifestfile:
manifestfile.write(json.dumps(manifest, indent=4, sort_keys=True))

Expand Down

0 comments on commit 431dbda

Please sign in to comment.