Skip to content

v1.4.0-beta.52

v1.4.0-beta.52 #70

Workflow file for this run

on:
push:
tags:
- 'v*.*.*'
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set env
run: |
echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
echo "VERSION_NUMBER=$(echo ${GITHUB_REF#refs/*/} | cut -d"v" -f 2)" >> $GITHUB_ENV
- name: Setup dotnet
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
- name: Build release
run: |
dotnet test ./src/HomeGenie.Tests/HomeGenie.Tests.csproj --framework net6.0
cat ./src/HomeGenie/release_info.xml
./assets/deploy/linux/build-all.sh
- name: Zip release bundles
run: |
./assets/deploy/linux/pack-all.sh
ls -la ./src/HomeGenie/bin/Release/artifacts/
- name: Build debian package and docs
run: |
sudo apt-get install doxygen
./assets/deploy/linux/builddeb.sh
cd ./assets/deploy/linux && sh doxygen.sh
mv Output/* ../../../src/HomeGenie/bin/Release/artifacts/
mv Doxy/homegenie_api.tgz ../../../src/HomeGenie/bin/Release/artifacts/
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
./src/HomeGenie/bin/Release/artifacts/homegenie_${{ env.VERSION_NUMBER }}_linux-arm.zip
./src/HomeGenie/bin/Release/artifacts/homegenie_${{ env.VERSION_NUMBER }}_linux-arm64.zip
./src/HomeGenie/bin/Release/artifacts/homegenie_${{ env.VERSION_NUMBER }}_osx-x64.zip
./src/HomeGenie/bin/Release/artifacts/homegenie_${{ env.VERSION_NUMBER }}_linux-x64.zip
./src/HomeGenie/bin/Release/artifacts/homegenie_${{ env.VERSION_NUMBER }}_win-x64.zip
./src/HomeGenie/bin/Release/artifacts/homegenie_${{ env.VERSION_NUMBER }}_net472.zip
./src/HomeGenie/bin/Release/artifacts/homegenie_${{ env.VERSION_NUMBER }}_net472.deb
./src/HomeGenie/bin/Release/artifacts/homegenie_api.tgz