Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Onprem #191

Merged
merged 12 commits into from
Nov 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 50 additions & 0 deletions .gitea/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages

name: NPM Pack & Publish

on:
push:
branches:
- main

jobs:
test:
runs-on: docker
steps:
- uses: http://gitea.com/actions/checkout@v3
- run: npm ci
- run: npm test

build-npm:
needs: build
runs-on: docker
steps:
- uses: http://gitea.com/actions/checkout@v3
- run: npm i
name: Build
- run: npm version prepatch | sed -e 's/^/newVersion="/' | sed -e 's/$/"/'
- name: set CommitID to Version
run: |
sed -i -e "s/setByGitHubActions/${{ gitea.sha }}/" ${{ gitea.workspace }}/main.js && echo "=== IO-Package FILE ===" && cat ${{ gitea.workspace }}/io-package.json
- run: |
npm pack --json | jq -r '.[0] | "filename=" + .filename + "\nid=" + .id + "\nversion=" + .version' | sed 's/\\n/\n/g' >> "$GITHUB_OUTPUT"
name: Pack NPM File
id: npmpack
- name: List files in the repository
run: |
ls ${{ gitea.workspace }}
- name: Output information
run: echo "Filename = ${{ steps.npmpack.outputs.filename }}" && echo "ID = ${{ steps.npmpack.outputs.id }}" && echo "Version = ${{ steps.npmpack.outputs.version }}" && if [ -z "${{ steps.npmpack.outputs.filename }}" ]; then echo "Filename wrong!" && exit 1; else echo "filename fine"; fi && if [ -z "${{ steps.npmpack.outputs.version }}" ]; then echo "Version wrong!" && exit 1; else echo "Version fine"; fi
- name: Move files
run: |
cp -f ${{ gitea.workspace }}/${{ steps.npmpack.outputs.filename }} /deploy/iobroker/data/install/
- name: Install on ioBroker
run: |
docker exec -it iobroker /bin/bash -c "iobroker url /opt/iobroker/install/${{ steps.npmpack.outputs.filename }}"
- name: Upload new Admin files
run : |
docker exec -it iobroker /bin/bash -c "iobroker upload go-e"
- name: Restart the adapter
run: |
docker exec -it iobroker /bin/bash -c "iobroker restart go-e.0"
23 changes: 17 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,23 @@ https://go-e.co/support/

## Changelog

* 1.0.29: Bugfixes.
* 1.0.27: Enabled foreign Object usage; Full Changelog online: https://github.com/MK-2001/ioBroker.go-e/blob/main/docs/CHANGELOG.md; Issue for Object not found.
* 1.0.25": TempArray resize on FW 054 HW V2; Readme.Adaption; Dependency security updates; Added the options to consider acknowledged value changes of foreign adapters; Added choice of ack of foreign adapters (#125)\\n Minor bug for sentry; Error in tme object; Bug in Sentry. Added Catch.
* 1.0.18: First adaption of V3 hardware from go-e; Added switch to disable writing of the temperatures array; write different amont of temperature sensors; Added addtional attributes to ast; Updated several FOSS libs
* 1.0.15: Bug fixes
* 1.0.10: Enabled new Version of hardware updates
### 1.0.29
* Bugfixes.

### 1.0.27
*Enabled foreign Object usage; Full Changelog online: https://github.com/MK-2001/ioBroker.go-e/blob/main/docs/CHANGELOG.md; Issue for Object not found.

### 1.0.25
* TempArray resize on FW 054 HW V2; Readme.Adaption; Dependency security updates; Added the options to consider acknowledged value changes of foreign adapters; Added choice of ack of foreign adapters (#125)\\n Minor bug for sentry; Error in tme object; Bug in Sentry. Added Catch.

### 1.0.18
* First adaption of V3 hardware from go-e; Added switch to disable writing of the temperatures array; write different amont of temperature sensors; Added addtional attributes to ast; Updated several FOSS libs

### 1.0.15
* Bug fixes

### 1.0.10
* Enabled new Version of hardware updates

[Additional moved here](./CHANGELOG_OLD.md)

Expand Down
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.