This repository has been archived on 2023-11-07. You can view files and clone it, but cannot push or open issues or pull requests.
awl/prepare-pages.sh
Sam Therapy f9b756cf5f
Some checks failed
continuous-integration/drone Build is failing
A new start
2023-02-20 20:54:21 +01:00

30 lines
514 B
Bash
Executable file

#!/usr/bin/env bash
set -e
if [ -z "$TAG" ]; then
# drone
if [ -n "$DRONE_TAG" ]; then
TAG=$DRONE_TAG
fi
# woodpecker
if [ -n "$CI_COMMIT_TAG" ]; then
TAG=$CI_COMMIT_TAG
fi
if [ -z "$TAG" ]; then
echo "\$TAG not set, exiting"
exit 1
fi
fi
arches=("amd64" "386" "armv6" "arm64")
notag=${TAG//v/}
for arch in "${arches[@]}"; do
wget "https://git.froth.zone/sam/awl/releases/download/$TAG/awl_${notag}_linux_${arch}.deb"
done
reprepro includedeb awl ./*.deb
mkdir -p repo
mv dists/ pool/ repo/