From 1d4896842fb8307a12b88368b7791f664f8446b7 Mon Sep 17 00:00:00 2001 From: Chase Eller Date: Sun, 27 Aug 2023 12:13:01 -0400 Subject: [PATCH] Update to clone data to server --- .github/workflows/WebCI.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/WebCI.yml b/.github/workflows/WebCI.yml index 1dc5bd0..e18df0d 100644 --- a/.github/workflows/WebCI.yml +++ b/.github/workflows/WebCI.yml @@ -33,7 +33,7 @@ jobs: mkdir -p ./workingdir2 find ./ -mindepth 1 -maxdepth 1 -type d ! -name '.git' ! -name '.github' ! -name 'workingdir2' ! -name '.vscode' -exec mv -t workingdir2/ {} + - - name: SFTP Upload + - name: SFTP Upload - Web uses: wangyucode/sftp-upload-action@v2.0.2 with: host: 127.0.0.1 @@ -45,6 +45,18 @@ jobs: exclude: '*.git/*,*.git/,*.github/*,*.github/,README.md,.gitignore' removeExtraFilesOnServer: true + - name: SFTP Upload - Fivem + uses: wangyucode/sftp-upload-action@v2.0.2 + with: + host: ${{ secrets.PTERODACTYL_PANEL }} + port: 2022 + username: ${{ secrets.SFTP_USER }} + password: ${{ secrets.SFTP_KEY }} + localDir: './workingdir2' + remoteDir: '/resources/[GRAPHICS]/' + exclude: '*.git/*,*.git/,*.github/*,*.github/,README.md,.gitignore' + removeExtraFilesOnServer: true + - name: Put It All Back run: | mv ./workingdir2/* ./