Skip to content

Commit

Permalink
Build release zip.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Hale committed Jan 29, 2024
1 parent 8e106ec commit e5f61bf
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
15 changes: 14 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,21 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: 3.9
python-version: 3.11
- name: Run tests
run: |
export PYTHONPATH=src/modules
python -m unittest discover tests
- name: Build zip
run: |
mkdir dist
mkdir dist/pyscript
cp -R src/* dist/pyscript/
cd dist
zip -r agile-powerwall.zip *
- name: Release zips
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
dist/agile-powerwall.zip
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ using

1. Install Home Assistant Octopus Energy integration.
2. Install Pyscript integration.
3. Copy the contents of the `src` directory to the Home Assistant directory `/config/pyscript`.
3. Unzip the [release zip](https://github.com/pulquero/agile-powerwall/releases/latest) into the Home Assistant directory `/config`.
4. Add Pyscript app configuration:

pyscript:
Expand Down

0 comments on commit e5f61bf

Please sign in to comment.