Skip to content

fix workflow

fix workflow #8

Workflow file for this run

name: Build
permissions: {}
on:
push:
paths-ignore:
- '**.md'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Validate HACS
uses: hacs/action@main
with:
category: "plugin"
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dependencies
run: yarn --frozen-lockfile
- name: Build
run: yarn build
- uses: actions/upload-artifact@v4
with:
name: homed-zigbee-networkmap
path: ./dist/homed-zigbee-networkmap.js
release:
if: ${{ startsWith(github.ref, 'refs/tags/') }}
needs: build
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v4
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ./homed-zigbee-networkmap/homed-zigbee-networkmap.js
asset_name: homed-zigbee-networkmap.js
tag: ${{ github.ref }}