-
Notifications
You must be signed in to change notification settings - Fork 5
31 lines (26 loc) · 805 Bytes
/
publish.yaml
File metadata and controls
31 lines (26 loc) · 805 Bytes
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
name: 'Publish'
on:
release:
types:
- published
concurrency:
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
cancel-in-progress: true
jobs:
release:
name: HACS release
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout the repository
uses: actions/checkout@v4
- name: Build release package (HACS)
run: |
cd ${{ github.workspace }}/custom_components/econnect_metronet
zip hacs_econnect_metronet.zip -r ./
- name: Upload release packages
uses: softprops/action-gh-release@v0.1.15
with:
files: |
${{ github.workspace }}/custom_components/econnect_metronet/hacs_econnect_metronet.zip