summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2020-12-09 16:28:17 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2020-12-09 16:28:17 +0200
commite99440475e3359c8731643019e425b7175df0d63 (patch)
treeabf1065e1d2b6c9707cead95d6f991d8050cd69e /.github/workflows
parent51c6438ff5abf0f40827d8278ecb847b80fd0997 (diff)
GitHub: Trying out git-archive-all
Diffstat (limited to '.github/workflows')
-rwxr-xr-x.github/workflows/docker-debian/entrypoint.sh11
1 files changed, 7 insertions, 4 deletions
diff --git a/.github/workflows/docker-debian/entrypoint.sh b/.github/workflows/docker-debian/entrypoint.sh
index 6e1ffbb0..3c03ca75 100755
--- a/.github/workflows/docker-debian/entrypoint.sh
+++ b/.github/workflows/docker-debian/entrypoint.sh
@@ -2,19 +2,22 @@
2export LC_ALL=en_US.UTF-8 2export LC_ALL=en_US.UTF-8
3 3
4apt-get update -qq -y 4apt-get update -qq -y
5apt-get install -y -qq --no-install-recommends cmake libsdl2-dev libssl-dev libpcre3-dev zlib1g-dev libunistring-dev libmpg123-dev debhelper dh-make devscripts fakeroot git build-essential locales 5apt-get install -y -qq --no-install-recommends cmake libsdl2-dev libssl-dev libpcre3-dev zlib1g-dev libunistring-dev libmpg123-dev debhelper dh-make devscripts fakeroot git build-essential locales python3 python3-pip
6pip3 install git-archive-all
6sed -i 's/^# *\(en_US.UTF-8\)/\1/' /etc/locale.gen && locale-gen 7sed -i 's/^# *\(en_US.UTF-8\)/\1/' /etc/locale.gen && locale-gen
7git submodule sync
8 8
9git submodule sync
9export RELEASE_VERSION=`git tag | sort -rV | head -n1 | sed 's/v\(.*\)/\1/'` 10export RELEASE_VERSION=`git tag | sort -rV | head -n1 | sed 's/v\(.*\)/\1/'`
10 11
11git archive --format=tar.gz --prefix=lagrange-${RELEASE_VERSION}/ HEAD >lagrange-${RELEASE_VERSION}.tar.gz 12git archive-all --prefix=lagrange-${RELEASE_VERSION}/ lagrange-${RELEASE_VERSION}.tar.gz
12tar -xvzf lagrange-${RELEASE_VERSION}.tar.gz 13tar -xvzf lagrange-${RELEASE_VERSION}.tar.gz
13ln -s lagrange-${RELEASE_VERSION}.tar.gz lagrange_${RELEASE_VERSION}.orig.tar.gz 14ln -s lagrange-${RELEASE_VERSION}.tar.gz lagrange_${RELEASE_VERSION}.orig.tar.gz
15
14cd lagrange-${RELEASE_VERSION} 16cd lagrange-${RELEASE_VERSION}
15dch -v ${RELEASE_VERSION}-1 "Built by GitHub CI." 17dch -v ${RELEASE_VERSION}-1 "Built by GitHub Actions."
16dch -r "" 18dch -r ""
17debuild 19debuild
18cd .. 20cd ..
21
19mkdir -p artifacts 22mkdir -p artifacts
20mv *deb artifacts/ 23mv *deb artifacts/