From 6b8838497b07d93933de0af0998dfbec376827c0 Mon Sep 17 00:00:00 2001 From: Alberto Oporto Ames Date: Tue, 8 Sep 2020 10:21:07 -0500 Subject: [PATCH] [CI] Add deb package (#59) * Add deb package to CI, #57 * Fix dependencies --- .github/workflows/python.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index a7f94b7..93b82a9 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -47,3 +47,38 @@ jobs: with: name: ${{ runner.os }}-package path: legendary/dist/* + + deb: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: ['ubuntu-20.04'] + + fail-fast: true + max-parallel: 3 + + steps: + - uses: actions/checkout@v2 + + - name: Dependencies + run: sudo apt install + python3-all + python3-stdeb + dh-python + python3-requests + python3-setuptools + python3-wheel + + - name: Build + run: python3 setup.py --command-packages=stdeb.command bdist_deb + + - name: Os version + id: os_version + run: | + source /etc/os-release + echo ::set-output name=version::$NAME-$VERSION_ID + + - uses: actions/upload-artifact@v2 + with: + name: ${{ steps.os_version.outputs.version }}-deb-package + path: deb_dist/*.deb