Skip to content

Commit

Permalink
Generate Debian repo files
Browse files Browse the repository at this point in the history
  • Loading branch information
xuhdev committed Apr 22, 2024
1 parent 1802a8d commit b95e915
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
with:
Expand Down
10 changes: 10 additions & 0 deletions scripts/generate_repo_files.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit b95e915

Please sign in to comment.