Skip to content

Added option of sync-delta-includes to allow adding files which are added through a build process in the workflow. #43

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

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

shishirraven
Copy link

Here is an example of how I configured it on the fork.
Basically I have added

sync-delta-includes: '~/work/teamstream_webfort/teamstream_webfort/todo/teamprotodo_vue/dist '

Which allows you to any folder irrespective of the git diff. And because I use an action to build my vue js files. this allows me to upload these files which are actually not on the repo itself and generated through Github Actions.

on: push
name: 🚀 Deploy on on teampro New new
jobs:
  deploy-master:
    name: "Deploy on on teampro New new "
    runs-on: ubuntu-latest
    timeout-minutes: 30
    steps:
      - name: Checkout Repository
        uses: actions/checkout@v4
        with:
          fetch-depth: 0

      - name: 🔨 Build Project
        run: |
          cd todo/teamprotodo_vue/
          npm install
          npm run build
          cd ../../
      - name: Deploy Files
        uses: shishirraven/actions-file-deployer@master
        with:
          sync-delta-includes: '~/work/teamstream_webfort/teamstream_webfort/todo/teamprotodo_vue/dist '
          remote-protocol: "sftp"
          remote-host: ${{ secrets.DEPLOY_HOST }}
          remote-user: ${{ secrets.DEPLOY_USER }}
          ssh-private-key: ${{ secrets.DEPLOY_PRIVATE_KEY }}
          remote-path: "/home/bitnami/htdocs/teampro/new2"

@milanmk
Copy link
Owner

milanmk commented Aug 19, 2024

Thank you for your contribution. Will test it thoroughly before merging it to master.

@IrinaGrigoryan
Copy link

Hi! Any updates on this? Really need this feature working :)

@floriancnx
Copy link

Thank you for your contribution. Will test it thoroughly before merging it to master.

Anything new @milanmk

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

Successfully merging this pull request may close these issues.

4 participants