Browse Source

Testing deb creation workflow

sisyphus
JezerM 3 years ago
parent
commit
d49b55d926
No known key found for this signature in database
GPG Key ID: 66BBC5D01388C6B5
  1. 41
      .github/workflows/publish.yml

41
.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
Loading…
Cancel
Save