Files
eden/.ci/scripts/common/post-upload.sh
T

21 lines
641 B
Bash
Raw Normal View History

2019-07-13 21:34:40 -04:00
#!/bin/bash -ex
2022-05-15 02:06:02 +02:00
# SPDX-FileCopyrightText: 2019 yuzu Emulator Project
# SPDX-License-Identifier: GPL-2.0-or-later
2019-07-13 21:34:40 -04:00
# Copy documentation
2022-05-15 02:06:02 +02:00
cp LICENSE.txt "$DIR_NAME"
cp README.md "$DIR_NAME"
2019-07-13 21:34:40 -04:00
2022-07-04 21:18:17 -06:00
if [[ -z "${NO_SOURCE_PACK}" ]]; then
2022-07-31 01:25:40 -04:00
git clone --depth 1 file://$(readlink -e .) ${REV_NAME}-source
tar -cJvf "${REV_NAME}-source.tar.xz" ${REV_NAME}-source
cp -v "${REV_NAME}-source.tar.xz" "$DIR_NAME"
cp -v "${REV_NAME}-source.tar.xz" "${ARTIFACTS_DIR}/"
fi
2019-11-11 22:32:22 -05:00
tar $COMPRESSION_FLAGS "$ARCHIVE_NAME" "$DIR_NAME"
2019-07-13 21:34:40 -04:00
# move the compiled archive into the artifacts directory to be uploaded by travis releases
2020-12-29 22:09:06 -05:00
mv "$ARCHIVE_NAME" "${ARTIFACTS_DIR}/"