diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
deleted file mode 100644
index 2b373e7..0000000
--- a/.github/workflows/build.yml
+++ /dev/null
@@ -1,29 +0,0 @@
-name: Build release
-
-on:
- push:
-
-jobs:
- build:
- runs-on: ubuntu-latest
- strategy:
- matrix:
- node-version: [20.x]
- steps:
- - uses: actions/checkout@v4
- - name: Bump version and push tag
- id: tag_version
- uses: mathieudutour/github-tag-action@v6.2
- with:
- github_token: ${{ secrets.GITHUB_TOKEN }}
- - name: Create a GitHub release
- uses: ncipollo/release-action@v1
- with:
- tag: ${{ steps.tag_version.outputs.new_tag }}
- name: Release ${{ steps.tag_version.outputs.new_tag }}
- body: ${{ steps.tag_version.outputs.changelog }}
- - name: update README.md
- run: 'sed "s/#-#-#VERSION#-#-#.*/### :hammer_and_wrench: Version: ${{ steps.tag_version.outputs.new_tag }}/g" src/README-template.md > README.md'
- - uses: stefanzweifel/git-auto-commit-action@v5
- with:
- commit_message: Commit updated README.md
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index e1be5d3..e4ac0e4 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -7,13 +7,15 @@ permissions:
contents: write
pull-requests: write
-name: release-please
+name: Handle release
jobs:
release-please:
runs-on: ubuntu-latest
steps:
- - uses: googleapis/release-please-action@v4
+ - name: create new release
+ uses: googleapis/release-please-action@v4
+ id: release
with:
# this assumes that you have created a personal access token
# (PAT) and configured it as a GitHub action secret named
@@ -21,4 +23,15 @@ jobs:
# token: ${{ secrets.MY_RELEASE_PLEASE_TOKEN }}
# this is a built-in strategy in release-please, see "Action Inputs"
# for more options
- release-type: simple
\ No newline at end of file
+ release-type: simple
+ - uses: actions/checkout@v4
+ if: ${{ steps.release.outputs.release_created }}
+ - name: update README.md
+ if: ${{ steps.release.outputs.release_created }}
+ run: |
+ sed -i 's/Current version: .*/Current version: ${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}.${{ steps.release.outputs.patch }}/' README.md
+ - name: commit updated README.md
+ if: ${{ steps.release.outputs.release_created }}
+ uses: stefanzweifel/git-auto-commit-action@v5
+ with:
+ commit_message: "chore: update version in README to ${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}.${{ steps.release.outputs.patch }}"
diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml
index 9edea8b..ad10779 100644
--- a/.github/workflows/validate.yml
+++ b/.github/workflows/validate.yml
@@ -1,4 +1,4 @@
-name: Validate
+name: Validate HACS
on:
push:
diff --git a/README.md b/README.md
index 4dbf658..2a5a3b4 100644
--- a/README.md
+++ b/README.md
@@ -1,31 +1,14 @@
# Yerushamayim
-## Unofficial Yerushamayim Home Assistant integration and Lovelace card
+## Unofficial Yerushamayim integration
-### :hammer_and_wrench: Version: v1.0.21
+### Current version: 1.1.0
+
![screenshot](https://raw.githubusercontent.com/chilikla/yerushamayim/main/screenshot.png)
### Instructions
- Add this repo to HACS' Custom repositories: `https://github.com/chilikla/yerushamayim`
- Restart Home Assistant
-- Add card to your dashboard
-
-### Old Instructions
-- Copy `dist/custom_components/yerushamayim` folder to your `custom_components` Home Assistant folder
-- Restart Home Assistant
-- Add to your configuration yaml:
- ```
- sensor:
- - platform: yerushamayim
- ```
-- Restart Home Assistant
-- Copy `dist/www/yerushamayim-card.js` or `dist/www/yerushamayim-card-local.js` to your `www` Home Assistant folder
-- Edit your Lovelace dashboard and add to resources `/local/yerushamayim-card.js?v=1.0.0.` as JavaScript Module
-- Add manual card to your dashboard:
- ```
- type: custom:yerushamayim-card
- entity: sensor.yerushamayim
- ```
### License
Apache-2.0. By providing a contribution, you agree the contribution is licensed under Apache-2.0. This is required for Home Assistant contributions.
diff --git a/src/README-template.md b/src/README-template.md
deleted file mode 100644
index bf2067e..0000000
--- a/src/README-template.md
+++ /dev/null
@@ -1,31 +0,0 @@
-# Yerushamayim
-## Unofficial Yerushamayim Home Assistant integration and Lovelace card
-
-#-#-#VERSION#-#-#
-
-![screenshot](https://raw.githubusercontent.com/chilikla/yerushamayim/main/screenshot.png)
-
-### Instructions
-- Add this repo to HACS' Custom repositories: `https://github.com/chilikla/yerushamayim`
-- Restart Home Assistant
-- Add card to your dashboard
-
-### Old Instructions
-- Copy `dist/custom_components/yerushamayim` folder to your `custom_components` Home Assistant folder
-- Restart Home Assistant
-- Add to your configuration yaml:
- ```
- sensor:
- - platform: yerushamayim
- ```
-- Restart Home Assistant
-- Copy `dist/www/yerushamayim-card.js` or `dist/www/yerushamayim-card-local.js` to your `www` Home Assistant folder
-- Edit your Lovelace dashboard and add to resources `/local/yerushamayim-card.js?v=1.0.0.` as JavaScript Module
-- Add manual card to your dashboard:
- ```
- type: custom:yerushamayim-card
- entity: sensor.yerushamayim
- ```
-
-### License
-Apache-2.0. By providing a contribution, you agree the contribution is licensed under Apache-2.0. This is required for Home Assistant contributions.