Skip to content

Commit

Permalink
Merge pull request #34 from jbergler/main
Browse files Browse the repository at this point in the history
add a release workflow
  • Loading branch information
jbergler authored Mar 26, 2023
2 parents 93b5d9e + 3b7a752 commit e7971da
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
28 changes: 28 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Build

on:
release:
types: [published]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Get version
id: version
uses: home-assistant/actions/helpers/version@master

- name: Patch manifest and zip
run: |
sed -i 's/v0.0.0/${{ steps.version.outputs.version }}/' custom_components/intesisbox/manifest.json
cd custom_components/intesisbox/
zip ../../intesisbox.zip -r ./
- uses: JasonEtco/upload-to-release@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
args: ./intesisbox.zip application/zip
2 changes: 1 addition & 1 deletion custom_components/intesisbox/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"domain": "intesisbox",
"name": "IntesisBox",
"version": "0.99",
"version": "v0.0.0",
"documentation": "https://github.com/jnimmo/hass-intesisbox",
"issue_tracker": "https://github.com/jnimmo/hass-intesisbox/issues",
"dependencies": [],
Expand Down

0 comments on commit e7971da

Please sign in to comment.