2020-12-06 09:26:44 -05:00
|
|
|
name: Build Debian package
|
2020-11-28 05:44:37 -05:00
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
push:
|
|
|
|
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
with:
|
2020-11-28 05:48:45 -05:00
|
|
|
submodules: true
|
2020-11-28 05:44:37 -05:00
|
|
|
fetch-depth: 1
|
|
|
|
|
2020-11-28 05:59:53 -05:00
|
|
|
- name: Set up Python
|
|
|
|
uses: actions/setup-python@v1
|
|
|
|
with:
|
|
|
|
python-version: 3.9
|
|
|
|
architecture: x64
|
|
|
|
|
2020-11-28 05:44:37 -05:00
|
|
|
- name: Build Debian/Apt package
|
|
|
|
run: |
|
2020-11-28 06:13:36 -05:00
|
|
|
sudo apt install -y python3 python3-dev python3-pip python3-venv python3-all dh-python debhelper devscripts dput software-properties-common python3-setuptools python3-wheel python3-stdeb
|
2020-11-28 05:59:53 -05:00
|
|
|
pip3 install --upgrade pip setuptools wheel stdeb
|
2020-11-28 05:44:37 -05:00
|
|
|
./bin/build_deb.sh
|
|
|
|
|
|
|
|
- name: Install archivebox from deb
|
|
|
|
run: |
|
|
|
|
apt install deb_dist/archivebox*.deb
|
|
|
|
|
|
|
|
- name: Add some links to test
|
|
|
|
run: |
|
|
|
|
mkdir data && cd data
|
|
|
|
archivebox init
|
|
|
|
archivebox add 'https://example.com'
|
|
|
|
archivebox version
|
|
|
|
archivebox status
|
|
|
|
|
|
|
|
# TODO: push debian package to launchpad PPA
|
|
|
|
# - name: Push to launchpad
|
|
|
|
# run: |
|
|
|
|
# dput archivebox "deb_dist/archivebox_${VERSION}-${DEBIAN_VERSION}_source.changes"
|