Skip to content

Commit

Permalink
chore: Updates github actions setup
Browse files Browse the repository at this point in the history
  • Loading branch information
MislavMandaric committed Sep 12, 2021
1 parent 71b461b commit 6b0a17d
Show file tree
Hide file tree
Showing 9 changed files with 71 additions and 236 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/cron.yaml → .github/workflows/cron.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
name: Cron actions
name: cron

on:
schedule:
- cron: '0 0 * * *'

jobs:
validate:

runs-on: "ubuntu-latest"
name: Validate

steps:
- uses: "actions/checkout@v2"

- name: HACS validation
uses: "hacs/action@main"
with:
category: "integration"
ignore: brands

- name: Hassfest validation
uses: "home-assistant/actions/hassfest@master"
20 changes: 0 additions & 20 deletions .github/workflows/labeler.yml

This file was deleted.

55 changes: 0 additions & 55 deletions .github/workflows/pull.yml

This file was deleted.

58 changes: 0 additions & 58 deletions .github/workflows/push.yml

This file was deleted.

15 changes: 0 additions & 15 deletions .github/workflows/release-drafter.yml

This file was deleted.

38 changes: 38 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: release

on:
push:
branches: [ master ]

jobs:
validate:

runs-on: "ubuntu-latest"
name: Validate

steps:
- uses: "actions/checkout@v2"
- name: HACS validation
uses: "hacs/action@main"
with:
category: "integration"
ignore: brands
- name: Hassfest validation
uses: "home-assistant/actions/hassfest@master"

release:
needs: [validate]

runs-on: ubuntu-latest
concurrency: release
environment:
name: release

steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Python Semantic Release
uses: relekang/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
85 changes: 0 additions & 85 deletions .github/workflows/tests.yaml

This file was deleted.

24 changes: 24 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: tests

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]


jobs:
validate:

runs-on: "ubuntu-latest"
name: Validate

steps:
- uses: "actions/checkout@v2"
- name: HACS validation
uses: "hacs/action@main"
with:
category: "integration"
ignore: brands
- name: Hassfest validation
uses: "home-assistant/actions/hassfest@master"
6 changes: 6 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,9 @@ branch = False
[coverage:report]
show_missing = true
fail_under = 100

[semantic_release]
version_pattern = custom_components/vaillant_vsmart/manifest.json:\"version\": \"{version}\",
commit_subject = chore(release): {version} [skip ci]
major_on_zero = false
upload_to_pypi = false

0 comments on commit 6b0a17d

Please sign in to comment.