From a7b66204d70e3a49776adafa9c26a008d97a2c35 Mon Sep 17 00:00:00 2001 From: Mr Mysterius <25854814+MrMysterius@users.noreply.github.com> Date: Wed, 28 Aug 2024 16:42:07 +0200 Subject: [PATCH] remove: unused files --- .gitlab-ci.yml | 64 ------------------------------------------------ build_linux.sh | 2 -- build_windows.sh | 2 -- 3 files changed, 68 deletions(-) delete mode 100644 .gitlab-ci.yml delete mode 100644 build_linux.sh delete mode 100644 build_windows.sh diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml deleted file mode 100644 index 96fcfae..0000000 --- a/.gitlab-ci.yml +++ /dev/null @@ -1,64 +0,0 @@ -stages: - - build - - upload - - release - -variables: - WINDOWS_EXE: "mangasee-dl.exe" - LINUX_BIN: "mangasee-dl" - PACKAGE_REGISTRY_URL: "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/release/${CI_COMMIT_TAG}" - -build: - stage: build - image: denoland/deno:latest - artifacts: - paths: - - ./mangasee-dl - - ./mangasee-dl.exe - expire_in: 1 week - before_script: - - apt update - - apt install --yes unzip - script: - - sh build_linux.sh - - sh build_windows.sh - -upload: - stage: upload - image: curlimages/curl:latest - needs: - - job: build - artifacts: true - rules: - - if: $CI_COMMIT_TAG - script: - - echo "${PACKAGE_REGISTRY_URL}/${WINDOWS_EXE}" - - 'curl --header "JOB-TOKEN: ${CI_JOB_TOKEN}" --upload-file ./${WINDOWS_EXE} "${PACKAGE_REGISTRY_URL}/${WINDOWS_EXE}"' - - echo "${PACKAGE_REGISTRY_URL}/${LINUX_BIN}" - - 'curl --header "JOB-TOKEN: ${CI_JOB_TOKEN}" --upload-file ./${LINUX_BIN} "${PACKAGE_REGISTRY_URL}/${LINUX_BIN}"' - -release: - stage: release - image: registry.gitlab.com/gitlab-org/release-cli:latest - needs: - - job: upload - artifacts: false - rules: - - if: $CI_COMMIT_TAG # Run this job when a tag is created manually - script: - - echo "running release_job for $CI_COMMIT_TAG" - - > - release-cli create --name "Version ${CI_COMMIT_TAG}" - --tag-name $CI_COMMIT_TAG - --description "${CI_COMMIT_MESSAGE} - Created using the release-cli ${EXTRA_DESCRIPTION}" - --assets-link "[{\"name\":\"${WINDOWS_EXE}\",\"url\":\"${PACKAGE_REGISTRY_URL}/${WINDOWS_EXE}\"},{\"name\":\"${LINUX_BIN}\",\"url\":\"${PACKAGE_REGISTRY_URL}/${LINUX_BIN}\"}]" - # release: - # name: "Version $CI_COMMIT_TAG" - # description: "$CI_COMMIT_MESSAGE \nCreated using the release-cli $EXTRA_DESCRIPTION" # $EXTRA_DESCRIPTION must be defined - # tag_name: "$CI_COMMIT_TAG" # elsewhere in the pipeline. - # ref: "$CI_COMMIT_TAG" - # assets: - # links: - # - name: "${RELEASE_FILE}" - # url: "${PACKAGE_REGISTRY_URL}/${RELEASE_FILE}" - diff --git a/build_linux.sh b/build_linux.sh deleted file mode 100644 index 0f9fb01..0000000 --- a/build_linux.sh +++ /dev/null @@ -1,2 +0,0 @@ -# Linux -deno compile --allow-net --allow-read --allow-write --allow-env --allow-run --target x86_64-unknown-linux-gnu --output mangasee-dl main.ts diff --git a/build_windows.sh b/build_windows.sh deleted file mode 100644 index 7361ab8..0000000 --- a/build_windows.sh +++ /dev/null @@ -1,2 +0,0 @@ -# Windows -deno compile --allow-net --allow-read --allow-write --allow-env --allow-run --target x86_64-pc-windows-msvc --output mangasee-dl.exe main.ts