hassio-supervised-installer/.github/workflows/build-deb.yml
Matheson Steplock 6003c366f9
Converting the supervised installer to a deb file (#154)
* laying the groundwork

* moving more stuff

* move files into place

* add control

* postinst script

* preinst

* added more to postinst and preinst

* I think this works

* fix gitignore and control

* fixes

* Delete homeassistant-supervised.deb

* Check network connection

* first test of build deb

* test 2

* create changelog

* switch to lowercase for github action

* test without args

* fix typo in example changelog

* Resolve errors

* Space out control

* added files to gitignore

* update gitignore

* putting everything in place

* revert actions changes

* Test action

* test workflow

* new action

* get rid of push

* set version number to match os agent format

* added machine type select

* move bin

* postrm undo dpkg-divert
2021-10-26 10:22:03 +02:00

21 lines
No EOL
552 B
YAML

name: Build Deb Package
# yamllint disable-line rule:truthy
on:
workflow_dispatch:
release:
types: ["published"]
jobs:
build-deb-package:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- run: chmod 755 homeassistant-supervised/DEBIAN/p*
- run: dpkg-deb --build --root-owner-group homeassistant-supervised
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: homeassistant-supervised.deb