From 056e04043306437be0732f429224303e057ddf01 Mon Sep 17 00:00:00 2001 From: Minecon724 Date: Sun, 12 May 2024 17:59:40 +0200 Subject: [PATCH] so much bloat (nodejs) for a GIT CLONE lmaooo??? --- .forgejo/workflows/deploy.yml | 7 ++++++- deploy.py | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.forgejo/workflows/deploy.yml b/.forgejo/workflows/deploy.yml index 576881f..4add1e3 100644 --- a/.forgejo/workflows/deploy.yml +++ b/.forgejo/workflows/deploy.yml @@ -6,4 +6,9 @@ jobs: steps: - run: git clone https://git.724.rocks/Minecon724/dn42-info . - run: pip install -r requirements.txt - - run: python deploy.py \ No newline at end of file + - run: python deploy.py + env: + FTP_SERVER: ${{ secrets.FTP_SERVER }} + FTP_USER: ${{ secrets.FTP_USER }} + FTP_PASSWORD: ${{ secrets.FTP_PASSWORD }} + ACCESS_KEY: ${{ secrets.ACCESS_KEY }} \ No newline at end of file diff --git a/deploy.py b/deploy.py index 0ae29cd..3ac3cb0 100644 --- a/deploy.py +++ b/deploy.py @@ -6,6 +6,7 @@ from io import BytesIO # init ftp +print(getenv('FTP_SERVER')) ftp = FTP(getenv('FTP_SERVER')) ftp.login(getenv('FTP_USER'), getenv('FTP_PASSWORD'))