Skip to content

Commit

Permalink
chore: update release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
firstof9 authored Jul 13, 2024
1 parent 6abdb93 commit 20c63c4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Release

on:
workflow_dispatch:
release:
types: [published]

Expand All @@ -18,7 +19,7 @@ jobs:

- name: "Set version numbmer"
run: |
sed -i '/VERSION = /c\VERSION = "${{ steps.get_version.outputs.VERSION }}"' ${{ github.workspace }}/custom_components/mail_and_packages/const.py
sed -i '/\bVERSION\b = /c\VERSION = "${{ steps.get_version.outputs.VERSION }}"' ${{ github.workspace }}/custom_components/mail_and_packages/const.py
sed -i '/version/c\ \"version\": \"${{ steps.get_version.outputs.VERSION }}\"' ${{ github.workspace }}/custom_components/mail_and_packages/manifest.json
# Pack the mail_and_packages dir as a zip and upload to the release
- name: ZIP MnP Dir
Expand All @@ -32,4 +33,4 @@ jobs:
file: ${{ github.workspace }}/custom_components/mail_and_packages/mail_and_packages.zip
asset_name: mail_and_packages.zip
tag: ${{ github.ref }}
overwrite: true
overwrite: true

0 comments on commit 20c63c4

Please sign in to comment.