Skip to content

Commit

Permalink
build: add release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Michsior14 committed Jan 6, 2024
1 parent abfb4ad commit 2786884
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 6 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: release

on:
workflow_dispatch:

permissions:
contents: write

jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- id: changelog
uses: TriPSs/conventional-changelog-action@v5
with:
github-token: ${{ secrets.github_token }}
preset: "conventionalcommits"
git-message: "release: {version}"
version-file: "./custom_components/venta/manifest.json"
skip-git-pull: "true"
- uses: ncipollo/release-action@v1
if: ${{ steps.changelog.outputs.skipped == 'false' }}
with:
tag: ${{ steps.changelog.outputs.tag }}
body: ${{ steps.changelog.outputs.clean_changelog }}
7 changes: 4 additions & 3 deletions .github/workflows/tox.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
name: Tox
name: tox

on:
- push
- pull_request
push:
pull_request:

jobs:
build:
runs-on: ubuntu-latest
if: ${{ !contains(github.event.head_commit.message, '[skip ci]') }}
strategy:
matrix:
python-version: ["3.11"]
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@ on:

jobs:
validate:
runs-on: "ubuntu-latest"
runs-on: ubuntu-latest
if: ${{ !contains(github.event.head_commit.message, '[skip ci]') }}
steps:
- uses: "actions/checkout@v3"
- uses: actions/checkout@v3
- name: hacs validation
uses: "hacs/action@main"
uses: hacs/action@main
with:
category: "integration"
- name: hassfest validation
Expand Down

0 comments on commit 2786884

Please sign in to comment.