Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
MartCube authored Dec 14, 2024
1 parent a16a621 commit a3f2b89
Showing 1 changed file with 8 additions and 29 deletions.
37 changes: 8 additions & 29 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit a3f2b89

Please sign in to comment.