Skip to content

CI

CI #15

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "main" branch
push:
tags:
- '*'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
permissions:
contents: write
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checkout this repo
- uses: actions/checkout@v3
with:
path: 'hacs'
# Clone LaMetric SKY Integration
- uses: actions/checkout@v3
with:
repository: 'spyfly/ha-core'
ref: 'lametric_sky_v2'
path: 'ha-core'
- name: Copy Custom Component Manifest
run: cp hacs/custom_components/lametric/manifest.json ha-core/homeassistant/components/lametric
- name: Pack Release
uses: thedoctor0/[email protected]
with:
type: 'zip'
filename: 'release.zip'
exclusions: '*.git*'
directory: 'ha-core/homeassistant/components/lametric'
- uses: ncipollo/release-action@v1
with:
allowUpdates: true
artifacts: "ha-core/homeassistant/components/lametric/release.zip"
bodyFile: "hacs/info.md"