milanmk / actions-file-deployer

Composite GitHub Action (Linux runner) for deploying repository content to remote server. Fast and customizable deployment with proxy support. Deploy only changed files or do full sync/mirror of repository content.
The Unlicense
62 stars 14 forks source link

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

Closed shishirraven closed 3 weeks ago

shishirraven commented 3 weeks ago

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

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"
shishirraven commented 3 weeks ago

Closing in favour of the most recent pull request as I missed to revert an unnecessary change.