mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-11-22 16:32:01 +03:00
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/`.
This commit is contained in:
parent
df4f853ca5
commit
371dbafb7a
4
.github/workflows/linux.yml
vendored
4
.github/workflows/linux.yml
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user