From a3f2b89508be417c1451ea5e718cf47507d09fc9 Mon Sep 17 00:00:00 2001 From: mart cube Date: Sat, 14 Dec 2024 20:43:28 +0100 Subject: [PATCH] Update main.yml --- .github/workflows/main.yml | 37 ++++++++----------------------------- 1 file changed, 8 insertions(+), 29 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ebe8f81..8f2ba7d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -20,33 +20,12 @@ jobs: rm -rf node_modules package-lock.json npm install --legacy-peer-deps - run: npx npm run generate - - name: Upload artifact - uses: actions/upload-pages-artifact@v3 + - name: Deploy with rsync + uses: burnett01/rsync-deployments@7.0.1 with: - path: ./.output/public - # Deployment job -deploy: - build: - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v4 - - - name: Install dependencies - run: | - rm -rf node_modules package-lock.json - npm install --legacy-peer-deps - - - name: Build the Nuxt 3 project - run: | - npx npm run generate - - - name: Deploy with rsync - uses: burnett01/rsync-deployments@7.0.1 - with: - switches: -avzr --delete - path: .output/public/ # Deploy only the built output directory - remote_host: ${{ secrets.REMOTE_HOST }} - remote_user: ${{ secrets.REMOTE_USER }} - remote_key: ${{ secrets.REMOTE_KEY }} - remote_path: ${{ secrets.REMOTE_PATH }} + switches: -avzr --delete + path: .output/public/ # Deploy only the built output directory + remote_host: ${{ secrets.REMOTE_HOST }} + remote_user: ${{ secrets.REMOTE_USER }} + remote_key: ${{ secrets.REMOTE_KEY }} + remote_path: ${{ secrets.REMOTE_PATH }}