post-upload.sh 585 B

12345678910111213141516171819
  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. fi
  12. tar $COMPRESSION_FLAGS "$ARCHIVE_NAME" "$DIR_NAME"
  13. # move the compiled archive into the artifacts directory to be uploaded by travis releases
  14. mv "$ARCHIVE_NAME" "${ARTIFACTS_DIR}/"