From 38708a6a6815e89710406d8ecbe39f6f85e62df2 Mon Sep 17 00:00:00 2001
From: Giuseppe Carboni <giuseppecarboni89@live.com>
Date: Thu, 30 Jan 2025 14:02:57 +0000
Subject: [PATCH] Removed unnecessary script for CI

---
 .github/utils/upload_to_gdrive.py | 31 -------------------------------
 1 file changed, 31 deletions(-)
 delete mode 100755 .github/utils/upload_to_gdrive.py

diff --git a/.github/utils/upload_to_gdrive.py b/.github/utils/upload_to_gdrive.py
deleted file mode 100755
index a9cc1c674..000000000
--- a/.github/utils/upload_to_gdrive.py
+++ /dev/null
@@ -1,31 +0,0 @@
-#!/usr/bin/env python
-from google.oauth2.credentials import Credentials
-from google.auth.transport.requests import Request
-from googleapiclient.discovery import build
-from googleapiclient.http import MediaFileUpload
-import os
-
-TOKEN_FILE = 'token.json'
-VM_FILE_PATH = '/home/runner/discos_manager.ova'
-SCOPES = [
-    'https://www.googleapis.com/auth/drive',
-    'https://www.googleapis.com/auth/drive.file'
-]
-
-# Authenticate with the token and eventually update it
-creds = Credentials.from_authorized_user_file(TOKEN_FILE, SCOPES)
-if creds.expired and creds.refresh_token:
-    creds.refresh(Request())
-
-# Prepare the files to be uploaded
-service = build('drive', 'v3', credentials=creds)
-vm_media = MediaFileUpload(VM_FILE_PATH, resumable=True)
-service.files().update(
-    fileId=os.environ.get('DEPLOYED_VM_GDRIVE_ID'),
-    media_body=vm_media,
-    fields='id'
-).execute()
-
-# Finally update the token file
-with open(TOKEN_FILE, 'w') as tokenfile:
-    tokenfile.write(creds.to_json())
-- 
GitLab