Skip to content

Commit b760c58

Browse files
committed
Adding Github Actions
1 parent 76257a3 commit b760c58

File tree

5 files changed

+112
-0
lines changed

5 files changed

+112
-0
lines changed

.github/FUNDING.yml

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
github: [RomRider]

.github/ISSUE_TEMPLATE/bug_report.md

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: bug
6+
assignees: ''
7+
---
8+
9+
<!-- READ THIS FIRST:
10+
- If you need additional help with this template please refer to https://www.home-assistant.io/help/reporting_issues/
11+
- Make sure you are running the latest version of Home Assistant before reporting an issue: https://github.com/home-assistant/home-assistant/releases
12+
- Provide as many details as possible. Do not delete any text from this template!
13+
-->
14+
15+
**Checklist:**
16+
17+
- [ ] I updated to the latest version available
18+
- [ ] I cleared the cache of my browser
19+
20+
**Release with the issue:**
21+
22+
**Last working release (if known):**
23+
24+
**Browser and Operating System:**
25+
26+
<!--
27+
Provide details about what browser (and version) you are seeing the issue in. And also which operating system this is on. If possible try to replicate the issue in other browsers and include your findings here.
28+
-->
29+
30+
**Description of problem:**
31+
32+
<!--
33+
Explain what the issue is, and how things should look/behave. If possible provide a screenshot with a description.
34+
-->
35+
36+
**Javascript errors shown in the web inspector (if applicable):**
37+
38+
```
39+
40+
```
41+
42+
**Additional information:**
+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: feature request
6+
assignees: ''
7+
---
8+
9+
**Is your feature request related to a problem? Please describe.**
10+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
11+
12+
**Describe the solution you'd like**
13+
A clear and concise description of what you want to happen.
14+
15+
**Describe alternatives you've considered**
16+
A clear and concise description of any alternative solutions or features you've considered.
17+
18+
**Additional context**
19+
Add any other context or screenshots about the feature request here.

.github/workflows/build.yml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: "Build"
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
11+
jobs:
12+
build:
13+
name: Test build
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v1
17+
- name: Build
18+
run: |
19+
npm install
20+
npm run build

.github/workflows/release.yml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Release
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
release:
9+
name: Prepare release
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v1
13+
14+
# Build
15+
- name: Build the file
16+
run: |
17+
cd /home/runner/work/decluttering-card/decluttering-card
18+
npm install
19+
npm run build
20+
21+
# Upload build file to the releas as an asset.
22+
- name: Upload zip to release
23+
uses: svenstaro/upload-release-action@v1-release
24+
25+
with:
26+
repo_token: ${{ secrets.GITHUB_TOKEN }}
27+
file: /home/runner/work/decluttering-card/decluttering-card/dist/decluttering-card.js
28+
asset_name: decluttering-card.js
29+
tag: ${{ github.ref }}
30+
overwrite: true

0 commit comments

Comments
 (0)