From b1ee0726b7c0b18dccf86e272b4ace762cea687c Mon Sep 17 00:00:00 2001 From: marceloexc Date: Sun, 21 Apr 2024 22:00:03 -0500 Subject: [PATCH] update github ci --- .github/workflows/ci.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9c7c953..2f058b0 100755 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -39,3 +39,21 @@ jobs: env: DEPLOY_SERVER: ${{ secrets.DEPLOY_SERVER }} DEPLOY_USERNAME: ${{ secrets.DEPLOY_USERNAME }} + + - name: Change URL for CORS on non-SSL mirror Hugo Config + run: sudo rm -rf hugo.toml && mv hugo_infinityfree.toml hugo.toml + + - name: Build the website (again) + run: hugo + + - name: 🚚 Get latest code + uses: actions/checkout@v4 + + - name: 📂 Sync files + uses: SamKirkland/FTP-Deploy-Action@v4.3.5 + with: + server: ftpupload.net + username: ${{ secrets.FTP_USERNAME }} + password: ${{ secrets.FTP_PASSWORD }} + local-dir: public/ + server-dir: htdocs/