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'))