generated from ludeeus/integration_blueprint
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (33 loc) · 1.05 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Create release
on:
workflow_dispatch:
inputs:
pre_release:
type: boolean
description: "pre-release?"
required: true
jobs:
release:
runs-on: "ubuntu-latest"
steps:
- uses: "actions/checkout@v4"
- name: Changelog action
id: changelog
uses: TriPSs/conventional-changelog-action@v4
with:
github-token: ${{ secrets.github_token }}
output-file: "false"
preset: conventionalcommits
version-file: "custom_components/saleryd_hrv/manifest.json"
pre-release: ${{ inputs.pre_release }}
skip-ci: false
- name: Create Release
uses: ncipollo/release-action@v1
if: ${{ steps.changelog.outputs.skipped == 'false' }}
with:
token: ${{ secrets.github_token }}
commit: ${{ github.sha }}
tag: ${{ steps.changelog.outputs.tag }}
body: ${{ steps.changelog.outputs.clean_changelog }}
name: ${{ steps.changelog.outputs.tag }}
prerelease: ${{ inputs.pre_release }}