Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dist folder not syncing #26

Open
bilalmalkoc opened this issue Sep 9, 2024 · 0 comments
Open

dist folder not syncing #26

bilalmalkoc opened this issue Sep 9, 2024 · 0 comments

Comments

@bilalmalkoc
Copy link

I added .git-ftp-include file and placed !dist/ code but still not pushing dist folder to server.

Here is my config:

name: 🚀 Deploy website on push

on:
  push:
    branches:
      - live

jobs:
  web-deploy:
    name: 🎉 Deploy
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v4
    - uses: actions/setup-node@v4
      with:
        node-version: 21
    - run: npm install
    - run: npm run build

    - name: Checkout again
      uses: actions/checkout@v4

    - name: 📂 Push files
      uses: SamKirkland/web-deploy@v1
      with:
        target-server: ${{ secrets.FTP_SERVER }}
        remote-user: ${{ secrets.SSH_USERNAME }}
        private-ssh-key: ${{ secrets.SSH_PRIVATE_KEY }}
        destination-path: /home/server/htdocs/x.com/wp-content/plugins/x/
        rsync-options: --archive --verbose --compress --human-readable --progress --delete-after --exclude=src* --exclude=node_modules* --exclude=.git* --exclude=.git/ --exclude=README.md --exclude=readme.md --exclude=.gitignore	

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant