-
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (34 loc) · 1.25 KB
/
release.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: "Release"
on:
push:
tags:
- "v*.*.*"
jobs:
release:
name: "Release"
runs-on: "ubuntu-latest"
permissions:
contents: write
steps:
- name: "Checkout"
uses: "actions/checkout@v4"
- name: "Verify the release version"
uses: technote-space/package-version-check-action@v1
with:
COMMIT_DISABLED: true
PACKAGE_DIR: ${{ github.workspace }}/custom_components/gsm_call
PACKAGE_NAME: manifest.json
- name: "Compress"
shell: "bash"
run: |
cd "${{ github.workspace }}/custom_components/gsm_call"
zip -r "${{ runner.temp }}/gsm_call.zip" ./
- name: "Publish"
uses: softprops/action-gh-release@v2
with:
draft: true
files: ${{ runner.temp }}/gsm_call.zip
body: >
[![Downloads](https://img.shields.io/github/downloads/black-roland/homeassistant-gsm-call/${{ github.ref_name }}/total?style=flat-square)](https://github.com/black-roland/homeassistant-gsm-call/releases)
[![Buy me a coffee](https://img.shields.io/badge/buy%20me%20a%20coffee-cc3336?style=flat-square&logo=coffeescript)](https://www.donationalerts.com/r/mansmarthome)
generate_release_notes: true