debian.yml 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. name: Build Debian package
  2. on:
  3. workflow_dispatch:
  4. push:
  5. env:
  6. DEB_BUILD_OPTIONS: nocheck
  7. jobs:
  8. build:
  9. runs-on: ubuntu-22.04
  10. steps:
  11. - uses: actions/checkout@v3
  12. with:
  13. submodules: true
  14. fetch-depth: 1
  15. - name: Install packaging dependencies
  16. run: |
  17. sudo apt-get update -qq
  18. sudo apt-get install -y \
  19. python3 python3-dev python3-pip python3-venv python3-all \
  20. dh-python debhelper devscripts dput software-properties-common \
  21. python3-distutils python3-setuptools python3-wheel python3-stdeb
  22. # - name: Build Debian/Apt sdist_dsc
  23. # run: |
  24. # ./bin/build_pip.sh
  25. # - name: Check ArchiveBox version
  26. # run: |
  27. # # must create dir needed for snaps to run as non-root on github actions
  28. # sudo mkdir -p /run/user/1001 && sudo chmod -R 777 /run/user/1001
  29. # mkdir "${{ github.workspace }}/data" && cd "${{ github.workspace }}/data"
  30. # archivebox --version
  31. # archivebox init --setup
  32. # - name: Add some links to test
  33. # run: |
  34. # cd "${{ github.workspace }}/data"
  35. # archivebox add 'https://example.com'
  36. # archivebox status
  37. # - name: Commit built package
  38. # run: |
  39. # cd deb_dist/
  40. # git config --local user.email "[email protected]"
  41. # git config --local user.name "GitHub Action"
  42. # git commit -m "Debian package autobuild" -a
  43. # - name: Push build to Github
  44. # uses: ad-m/github-push-action@master
  45. # with:
  46. # github_token: ${{ secrets.GITHUB_TOKEN }}
  47. # repository: ArchiveBox/debian-archivebox
  48. # branch: ${{ github.ref }}
  49. # directory: deb_dist
  50. # - name: Push build to Launchpad PPA
  51. # run: |
  52. # debsign -k "$PGP_KEY_ID" "deb_dist/archivebox_${VERSION}-${DEBIAN_VERSION}_source.changes"
  53. # dput archivebox "deb_dist/archivebox_${VERSION}-${DEBIAN_VERSION}_source.changes"