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