Skip to content
Snippets Groups Projects
Commit e483f1a1 authored by Johannes Marbach's avatar Johannes Marbach Committed by Johannes Marbach
Browse files

Add archiving script

parent 440eb9cd
No related branches found
Tags unl0kr-0.3.1
No related merge requests found
#!/bin/bash
version=$(git describe --exact-match --tags HEAD || git rev-parse HEAD)
archive=unl0kr-${version}.tar.gz
echo "Archiving repository with submodules..."
git-archive-all ${archive}
echo "Uploading archive to GitLab..."
response=$(curl --request POST \
--header "PRIVATE-TOKEN: $1" \
--form "file=@${archive}" \
"https://gitlab.com/api/v4/projects/29322771/uploads")
path=$(echo "${response}" | jq -r .full_path)
echo "${response}"
echo
echo "https://gitlab.com/${path}"
rm -f "${archive}"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment