Skip to content

docs: Update NEWS.md with zw-libs2 refs (#52) #313

docs: Update NEWS.md with zw-libs2 refs (#52)

docs: Update NEWS.md with zw-libs2 refs (#52) #313

Workflow file for this run

# YAML -*- mode: yaml; tab-width: 2; indent-tabs-mode: nil; coding: utf-8 -*-
---
name: z-wave-protocol-controller Build in docker
on: # yamllint disable-line rule:truthy
push:
jobs:
build:
env:
project-name: z-wave-protocol-controller # This should be lowercase for docker (and aligned)
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4.1.1
with:
fetch-depth: 0
- id: describe
name: Describe HEAD
run: >-
echo "describe=$(git describe --tags --always || echo 0)"
| tee $GITHUB_OUTPUT
- name: Build Docker image from sources
run: >-
docker build
--tag "${{ env.project-name }}:latest"
--build-arg UNIFYSDK_GIT_REPOSITORY=${{ secrets.UNIFYSDK_GIT_REPOSITORY }}
--build-arg UNIFYSDK_GIT_TAG=${{ secrets.UNIFYSDK_GIT_TAG }}
.
- name: Extract artifacts
run: >-
container=$(docker create "${{ env.project-name }}:latest")
&& docker cp
${container}:/usr/local/opt/${{ env.project-name }}/build/dist .
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
# yamllint disable-line
name: ${{ github.event.repository.name }}-${{ steps.describe.outputs.describe }}
path: dist/