From 65c5d66db036052f1c7b9f3d67bb480138bb2dfd Mon Sep 17 00:00:00 2001 From: root Date: Thu, 9 Jan 2025 09:38:19 +0100 Subject: [PATCH] Update .github/workflows/deploy.yml --- .github/workflows/deploy.yml | 32 +++++++++++++++++++++++++------- 1 file changed, 25 insertions(+), 7 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 35104b4..289341a 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -31,11 +31,29 @@ jobs: printf -- "> **Note:** You accessed a link that returned a 404, probably by clicking one of the plugin links. You're supposed to copy the link address and add it into shelter.\n\n" >> dist/404.md cat README.md >> dist/404.md - # Documentation: https://github.com/peaceiris/actions-gh-pages - - name: Deploy to GitHub Pages - uses: peaceiris/actions-gh-pages@v3 + - name: Upload production-ready build files + uses: actions/upload-artifact@v3 with: - github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ./dist - # Makes it so the md files in the previous step get processed by GitHub Pages - enable_jekyll: true + name: production-files + path: ./dist + + deploy: + name: Deploy + needs: build + runs-on: ubuntu-latest + steps: + - name: Download artifact + uses: actions/download-artifact@v3 + with: + name: production-files + path: ./dist + + - name: Upload ftp + uses: https://git.lgbt/mirror/ftp-action@releases/v2 + with: + host: ${{ secrets.FTP_SERVER }} + user: ${{ secrets.FTP_USER }} + password: ${{ secrets.FTP_PASSWORD }} + localDir: "dist" + remoteDir: "amy.rip" + options: "--delete" \ No newline at end of file