From 371dbafb7aa18d67930d2c3d4a43ba7f129a6918 Mon Sep 17 00:00:00 2001 From: Emil Lundberg Date: Fri, 11 Nov 2022 15:18:47 +0100 Subject: [PATCH] Add directory prefix to linux tar.gz build Archives are a bit nicer to work with if they unpack into a single directory instead of putting all the contents separately in the current working directory. A common convention is for an archive like `archive-version-os.tar.gz` to unpack into a directory of the same name: `archive-version-os/`. --- .github/workflows/linux.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 289e643a..189dc307 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -84,8 +84,10 @@ jobs: - name: Rename and archive app run: | export REF=$(echo ${GITHUB_REF} | cut -d '/' -f 3) + export BASENAME="yubioath-desktop-${REF}-linux" mkdir deploy - tar -czf deploy/yubioath-desktop-${REF}-linux.tar.gz -C build/linux/x64/release/bundle . + mv build/linux/x64/release/bundle "build/${BASENAME}" + tar -czf deploy/${BASENAME}.tar.gz -C build "${BASENAME}" - name: Upload artifact uses: actions/upload-artifact@v3