From b95e9158b53f224e10d30230e4a098bb225cdbba Mon Sep 17 00:00:00 2001 From: Hong Xu Date: Sun, 21 Apr 2024 20:27:14 -0700 Subject: [PATCH] Generate Debian repo files --- .github/workflows/pages.yml | 4 ++++ scripts/generate_repo_files.sh | 10 ++++++++++ 2 files changed, 14 insertions(+) create mode 100755 scripts/generate_repo_files.sh diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index 23a516e..fd3ecb2 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -40,6 +40,10 @@ jobs: - name: Download latest hugo run: scripts/download_latest_hugo_deb.sh + - name: Generate Debian Repo files + run: scripts/generate_repo_files.sh + working-directory: ${DIST_ROOT_DIR} + - name: Upload GitHub Pages Artifact uses: actions/upload-pages-artifact@v3.0.1 with: diff --git a/scripts/generate_repo_files.sh b/scripts/generate_repo_files.sh new file mode 100755 index 0000000..ab7c2c5 --- /dev/null +++ b/scripts/generate_repo_files.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +# Generate Packages.gz and Release files. +# Should be run at ${DIST_ROOT_DIR} + +cd binary-amd64 +apt-ftparchive packages . | gzip --best -c > Packages.gz +cd .. + +apt-ftparchive release . > Release