From b7426ad87ee133871ed5b790d248ef476c5c776a Mon Sep 17 00:00:00 2001 From: Kacper Kula Date: Thu, 2 Jan 2025 11:53:14 +0000 Subject: [PATCH] chore: deploying docs to FTP now instead of GH Pages --- .github/workflows/docs.yml | 41 ++++++++++---------------------------- 1 file changed, 10 insertions(+), 31 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 2f42e1a..21a1ea5 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -1,26 +1,15 @@ -name: Deploy docs to Pages +name: Deploy docs to FTP on: push: branches: [main] workflow_dispatch: -permissions: - contents: read - pages: write - id-token: write - - -concurrency: - group: pages - cancel-in-progress: false - jobs: - build: + build-and-deploy: runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@v4 + - uses: actions/checkout@v4 - uses: pnpm/action-setup@v4 with: version: 9 @@ -29,25 +18,15 @@ jobs: node-version: 21.x cache: "pnpm" - run: pnpm install --frozen-lockfile - - name: Setup Pages - uses: actions/configure-pages@v3 - name: Build with VitePress run: | pnpm run docs:build touch docs/.vitepress/dist/.nojekyll - - name: Upload artifact - uses: actions/upload-pages-artifact@v2 + - name: Deploy to FTP + uses: SamKirkland/FTP-Deploy-Action@v4.3.4 with: - path: docs/.vitepress/dist - - deploy: - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} - needs: build - runs-on: ubuntu-latest - name: Deploy - steps: - - name: Deploy to GitHub Pages - id: deployment - uses: actions/deploy-pages@v2 \ No newline at end of file + server: ${{ secrets.FTP_SERVER }} + username: ${{ secrets.FTP_USERNAME }} + password: ${{ secrets.FTP_PASSWORD }} + local-dir: docs/.vitepress/dist/ + server-dir: ${{ secrets.FTP_SERVER_DIR }} \ No newline at end of file