You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
changedetection.io/.github/workflows/build-deb-package.yml

53 lines
1.4 KiB

3 months ago
name: Build Debian Package
# Check status: systemctl status changedetection.io.service
# Get logs: journalctl -u changedetection.io.service
2 weeks ago
on: [push, pull_request]
3 months ago
jobs:
build-deb:
runs-on: ubuntu-latest
name: Build and Package changedetection.io
env:
PACKAGE_VERSION: 0.48.5 # or load from somewhere else
3 months ago
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
path: changedetection.io-${{ env.PACKAGE_VERSION }}
3 months ago
2 weeks ago
- name: Set up Python 3.10
3 months ago
uses: actions/setup-python@v4
with:
2 weeks ago
python-version: '3.10'
3 months ago
- name: Install Build Dependencies
run: |
sudo apt-get update
sudo apt-get install -y \
build-essential \
devscripts \
dh-virtualenv \
dh-python \
python3-all \
python3-all-dev \
python3.10 \
python3.10-venv \
python3.10-dev \
debhelper-compat
- name: Build the Debian Package
# Build it the same as the pypi way, then use the same package tar
3 months ago
run: |
mkdir /tmp/changedetection.io
python3 -m build
mv dist/*gz .
3 months ago
debuild -us -uc
- name: Upload Debian Package Artifact
uses: actions/upload-artifact@v3
with:
name: changedetection.io-deb-package
path: ../*.deb
2 weeks ago
#@todo install and test that some basic content appears