Skip to content

Commit

Permalink
Merge pull request #38 from caiosweet/beta
Browse files Browse the repository at this point in the history
Update release.yml
  • Loading branch information
caiosweet authored Jun 22, 2023
2 parents 1e60fee + 25a5013 commit c1e4152
Showing 1 changed file with 19 additions and 9 deletions.
28 changes: 19 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
name: Release Workflow

on:
release:
types: [published]
# release:
# types: [published]

push:
branches:
- main

workflow_dispatch:

jobs:
zip-files:
Expand All @@ -17,20 +23,24 @@ jobs:
with:
cmd: yq '.homeassistant.customize."package.cn".version' packages/centro_notifiche/hub_main.yaml

# - name: 📦 Create zip file for the packages blueprints lovelace folder
# uses: vimtor/[email protected]
# with:
# files: packages/ blueprints/ lovelace/
# dest: centro_notifiche.zip
# recursive: false

- name: 📦 Create zip file for the packages blueprints lovelace folder
uses: vimtor/[email protected]
with:
files: packages/ blueprints/ lovelace/
dest: centro_notifiche.zip
recursive: false

run: |
cd "${{ github.workspace }}"
zip -r centro_notifiche.zip packages blueprints lovelace
- name: 📤 Upload the zip file as a release asset and 🖊️ Set version number
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: "${{ github.workspace }}/centro_notifiche.zip"
asset_name: centro_notifiche.zip
# default # tag: ${{ github.ref }}
tag: ${{ steps.get_version.outputs.result }}
overwrite: true
prerelease: true
Expand Down

0 comments on commit c1e4152

Please sign in to comment.