From d49b55d92676b38a84380a81431d816a2c520704 Mon Sep 17 00:00:00 2001 From: JezerM Date: Fri, 28 Jan 2022 16:15:34 -0600 Subject: [PATCH] Testing deb creation workflow --- .github/workflows/publish.yml | 41 +++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..388b83a --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,41 @@ +name: Publish + +on: + push: + tags: + - '*' + workflow_dispatch: + +jobs: + build: + name: Publish binaries + runs-on: ubuntu-latest + + steps: + - + name: Checkout + uses: actions/checkout@v2 + - + name: Install dependencies + run: | + sudo apt update + sudo apt install liblightdm-gobject-1-dev libqt5webengine5 pyqt5-dev-tools python3-gi python3-pyqt5 python3-ruamel.yaml python3-pyinotify python3-xlib python3-pip + sudo apt install dpkg + - + name: Build and install web-greeter + run: make install + - + name: Build deb + run: | + cd build/ + cp -r DEBIAN/ install_root/ + dpkg-deb --root-owner-group --build install_root "web-greeter.deb" + dpkg --info "./web-greeter.deb" + - name: Upload binaries to release + uses: svenstaro/upload-release-action@v2 + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + file: build/web-greeter.deb + asset_name: web-greeter-$tag.deb + tag: ${{ github.ref }} + overwrite: true