summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2020-12-09 16:33:54 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2020-12-09 16:33:54 +0200
commit46b609c9e8df1077a5e187fce0ba77c810aa71bf (patch)
tree9df6e02e0b27f70f10c586b54af7411af5b0c901
parente99440475e3359c8731643019e425b7175df0d63 (diff)
GitHub: Use git-archive-all also in Ubuntu build
-rw-r--r--.github/workflows/build.yml5
1 files changed, 3 insertions, 2 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 8afef565..7a97b746 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -22,7 +22,8 @@ jobs:
22 run: | 22 run: |
23 git submodule sync 23 git submodule sync
24 sudo apt-get update -qq -y 24 sudo apt-get update -qq -y
25 sudo apt-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 build-essential 25 sudo apt-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 build-essential python3 python3-pip
26 sudo pip3 install git-archive-all
26 - name: import-signing-key 27 - name: import-signing-key
27 run: | 28 run: |
28 mkdir -p ~/.gnupg/ 29 mkdir -p ~/.gnupg/
@@ -33,7 +34,7 @@ jobs:
33 - name: package-build 34 - name: package-build
34 run: | 35 run: |
35 export RELEASE_VERSION=`git tag | sort -rV | head -n1 | sed 's/v\(.*\)/\1/'` 36 export RELEASE_VERSION=`git tag | sort -rV | head -n1 | sed 's/v\(.*\)/\1/'`
36 git archive --format=tar.gz --prefix=lagrange-${RELEASE_VERSION}/ HEAD >lagrange-${RELEASE_VERSION}.tar.gz 37 git archive-all --prefix=lagrange-${RELEASE_VERSION}/ lagrange-${RELEASE_VERSION}.tar.gz
37 tar -xvzf lagrange-${RELEASE_VERSION}.tar.gz 38 tar -xvzf lagrange-${RELEASE_VERSION}.tar.gz
38 ln -s lagrange-${RELEASE_VERSION}.tar.gz lagrange_${RELEASE_VERSION}.orig.tar.gz 39 ln -s lagrange-${RELEASE_VERSION}.tar.gz lagrange_${RELEASE_VERSION}.orig.tar.gz
39 cd lagrange-${RELEASE_VERSION} 40 cd lagrange-${RELEASE_VERSION}