z-wave-protocol-controller Build in rootfs for arch #75
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# YAML -*- mode: yaml; tab-width: 2; indent-tabs-mode: nil; coding: utf-8 -*- | |
--- | |
name: z-wave-protocol-controller Build in rootfs for arch | |
on: # yamllint disable-line rule:truthy | |
push: | |
tags: | |
- '*' | |
jobs: | |
build: | |
runs-on: ubuntu-24.04 | |
strategy: | |
matrix: | |
arch: | |
- amd64 | |
# - armhf # TODO Enable when supported | |
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: Setup and build | |
run: >- | |
ARCH=${{ matrix.arch }} | |
UNIFYSDK_GIT_REPOSITORY=${{ secrets.UNIFYSDK_GIT_REPOSITORY }} | |
UNIFYSDK_GIT_TAG=${{ secrets.UNIFYSDK_GIT_TAG }} | |
./scripts/build-rootfs.sh | |
- name: Build documentation once | |
run: >- | |
./scripts/build-rootfs.sh docs/dist | |
deploy: | |
needs: build | |
permissions: | |
pages: write # to deploy to Pages | |
id-token: write # to verify the deployment originates from an appropriate source | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Upload Release Asset | |
id: upload-release-asset | |
uses: softprops/action-gh-release@v2 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
files: build/dist/* | |
# yamllint disable-line rule:line-length | |
# TODO: Sign asset: https://github.com/softprops/action-gh-release/issues/580#2025 | |
token: ${{ secrets.GH_UNIFY_ACCESS_TOKEN }} | |
- name: Upload pages artifact | |
uses: actions/upload-pages-artifact@v2 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
name: 'github-pages' | |
path: 'build/dist/${{ github.event.repository.name }}-docs-${{ steps.describe.outputs.describe }}.zip' | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v4 | |
if: startsWith(github.ref, 'refs/tags/') |