post-upload.sh 641 B

1234567891011121314151617181920
  1. #!/bin/bash -ex
  2. # SPDX-FileCopyrightText: 2019 yuzu Emulator Project
  3. # SPDX-License-Identifier: GPL-2.0-or-later
  4. # Copy documentation
  5. cp LICENSE.txt "$DIR_NAME"
  6. cp README.md "$DIR_NAME"
  7. if [[ -z "${NO_SOURCE_PACK}" ]]; then
  8. git clone --depth 1 file://$(readlink -e .) ${REV_NAME}-source
  9. tar -cJvf "${REV_NAME}-source.tar.xz" ${REV_NAME}-source
  10. cp -v "${REV_NAME}-source.tar.xz" "$DIR_NAME"
  11. cp -v "${REV_NAME}-source.tar.xz" "${ARTIFACTS_DIR}/"
  12. fi
  13. tar $COMPRESSION_FLAGS "$ARCHIVE_NAME" "$DIR_NAME"
  14. # move the compiled archive into the artifacts directory to be uploaded by travis releases
  15. mv "$ARCHIVE_NAME" "${ARTIFACTS_DIR}/"