Skip to content

Commit

Permalink
chore: Update release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ngocjohn committed Dec 9, 2024
1 parent 7f97c97 commit 6f7513c
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Release

on:
push:
tags:
- 'v*.*.*'
workflow_dispatch:

jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Zip component
run: |
mkdir -p dist
zip -r dist/lunar_phase.zip custom_components/lunar_phase
- name: Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
draft: true
generate_release_notes: true
files: dist/lunar_phase.zip

0 comments on commit 6f7513c

Please sign in to comment.