Skip to content

chore: Update release workflow #2

chore: Update release workflow

chore: Update release workflow #2

Workflow file for this run

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