polaris-mirror/res/unix/release_script.sh
Antoine Gersant b2ee2fe701
Automate release process (#62)
Added Github Actions workflow to generate release
2020-01-20 18:21:47 -08:00

13 lines
422 B
Bash
Executable file

#!/bin/sh
echo "Creating output directory"
mkdir -p release/tmp/polaris
echo "Copying package files"
cp -r web docs/swagger src migrations Cargo.toml Cargo.lock res/unix/Makefile release/tmp/polaris
echo "Creating tarball"
POLARIS_VERSION=$(grep -m 1 ^version Cargo.toml | awk '{print $3}' | tr -d '"\r\n')
tar -zc -C release/tmp -f release/Polaris_$POLARIS_VERSION.tar.gz polaris
echo "Cleaning up"
rm -rf release/tmp