From 1382bc99f52424c4948f3349e46cf42a14879b98 Mon Sep 17 00:00:00 2001 From: Carneiro Date: Sat, 23 Nov 2024 12:37:49 -0300 Subject: [PATCH] Update action.yml --- action.yml | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 4bdeeac..023986c 100644 --- a/action.yml +++ b/action.yml @@ -29,4 +29,28 @@ runs: key: ${{ inputs.key }} port: ${{ inputs.port }} envs: PKG_NAME, REPO_NAME - script_path: entrypoint.sh + script: | + cd /tmp + + echo "Removing old clones..." + rm -rf ./${PKG_NAME} + + echo "Cloning the repo..." + git clone --depth=1 https://git.alice.ufsj.edu.br/${REPO_NAME} + + echo "Removing .git dir..." + rm -rf ./${PKG_NAME}/.git ./${PKG_NAME}/.gitea + ls -la ./${PKG_NAME} + + echo "Building package..." + dpkg-deb --build ${PKG_NAME} + + echo "Moving package to ppa..." + mv ${PKG_NAME}.deb /var/www/html/debian/pool/main + cd /var/www/html/debian + + echo "Creating Packages file..." + dpkg-scanpackages pool/ > dists/stable/main/binary-amd64/Packages + + echo "Creating Relase file..." + apt-ftparchive -c /var/www/html/debian/apt-ftparchive.conf release /var/www/html/debian/dists/stable > /var/www/html/debian/dists/stable/Release