Skip to content

Commit

Permalink
feat: new release action
Browse files Browse the repository at this point in the history
  • Loading branch information
chilikla authored Oct 18, 2024
1 parent 519bc3c commit c584930
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 84 deletions.
29 changes: 0 additions & 29 deletions .github/workflows/build.yml

This file was deleted.

19 changes: 16 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,31 @@ 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
# `MY_RELEASE_PLEASE_TOKEN` (this secret name is not important).
# token: ${{ secrets.MY_RELEASE_PLEASE_TOKEN }}
# this is a built-in strategy in release-please, see "Action Inputs"
# for more options
release-type: simple
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 }}"
2 changes: 1 addition & 1 deletion .github/workflows/validate.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Validate
name: Validate HACS

on:
push:
Expand Down
23 changes: 3 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
@@ -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
<br/>

![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.
31 changes: 0 additions & 31 deletions src/README-template.md

This file was deleted.

0 comments on commit c584930

Please sign in to comment.