Skip to content

Commit

Permalink
release workflow on tags
Browse files Browse the repository at this point in the history
  • Loading branch information
signalkraft committed Nov 2, 2024
1 parent 344110f commit 9158af8
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
name: Build & Test
name: Release

on:
release:
push:
tags:
- "v*.*.*"

jobs:
release:
Expand All @@ -11,11 +13,12 @@ jobs:
- name: Archive Release
uses: thedoctor0/[email protected]
with:
type: 'zip'
directory: 'custom_components/mypyllant'
filename: 'mypyllant-component.zip'
- name: Upload Release
uses: ncipollo/release-action@v1.12.0
type: zip
directory: custom_components/mypyllant
filename: mypyllant-component.zip
- name: Release
uses: softprops/action-gh-release@v2
with:
artifacts: "mypyllant-component.zip"
token: ${{ secrets.GITHUB_TOKEN }}
draft: true
generate_release_notes: true
files: mypyllant-component.zip

0 comments on commit 9158af8

Please sign in to comment.