mirror of
https://github.com/derrod/legendary.git
synced 2024-12-22 17:55:27 +00:00
[CI] Add deb package (#59)
* Add deb package to CI, #57 * Fix dependencies
This commit is contained in:
parent
09b918d156
commit
6b8838497b
35
.github/workflows/python.yml
vendored
35
.github/workflows/python.yml
vendored
|
@ -47,3 +47,38 @@ jobs:
|
||||||
with:
|
with:
|
||||||
name: ${{ runner.os }}-package
|
name: ${{ runner.os }}-package
|
||||||
path: legendary/dist/*
|
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
|
||||||
|
|
Loading…
Reference in a new issue