1
0
Fork 0
archivebox/.github/workflows/debian.yml

71 lines
2.1 KiB
YAML
Raw Normal View History

name: Build Debian package
2020-11-28 05:44:37 -05:00
on:
workflow_dispatch:
push:
env:
2020-12-11 12:11:42 -05:00
SETUPTOOLS_USE_DISTUTILS: stdlib
2020-11-28 05:44:37 -05:00
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
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: 3.9
architecture: x64
2020-12-11 11:59:34 -05:00
- name: Install packaging dependencies
2020-11-28 05:44:37 -05:00
run: |
2020-12-11 11:52:07 -05:00
sudo apt install -y python3 python3-dev python3-pip python3-venv python3-all dh-python debhelper devscripts dput software-properties-common python3-distutils python3-setuptools python3-wheel python3-stdeb
2020-12-11 11:59:34 -05:00
pip3 install --upgrade pip setuptools wheel stdeb
2020-11-28 05:44:37 -05:00
2020-12-11 11:59:34 -05:00
- name: Build Debian/Apt sdist_dsc
2020-11-28 05:44:37 -05:00
run: |
2020-12-11 12:11:42 -05:00
python3 setup.py --command-packages=stdeb.command sdist_dsc
2020-12-11 11:59:34 -05:00
- name: Build Debian/Apt bdist_deb
run: |
2020-12-11 12:11:42 -05:00
python3 setup.py --command-packages=stdeb.command bdist_deb
2020-12-11 11:59:34 -05:00
- name: Install archivebox from deb
run: |
2020-11-28 05:44:37 -05:00
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
# - name: Commit files
# run: |
# cd deb_dist/
# git config --local user.email "action@github.com"
# git config --local user.name "GitHub Action"
# git commit -m "Debian package autobuild" -a
# - name: Push changes
# uses: ad-m/github-push-action@master
# with:
# github_token: ${{ secrets.GITHUB_TOKEN }}
# repository: ArchiveBox/debian-archivebox
# branch: ${{ github.ref }}
# directory: deb_dist
2020-11-28 05:44:37 -05:00
# TODO: push debian package to launchpad PPA
# - name: Push to launchpad
# run: |
2020-12-11 11:35:25 -05:00
# debsign -k "$PGP_KEY_ID" "deb_dist/archivebox_${VERSION}-${DEBIAN_VERSION}_source.changes"
2020-11-28 05:44:37 -05:00
# dput archivebox "deb_dist/archivebox_${VERSION}-${DEBIAN_VERSION}_source.changes"