SamKirkland / FTP-Deploy-Action

Deploys a GitHub project to a FTP server using GitHub actions
MIT License
3.86k stars 373 forks source link

Multiple main.yml files #414

Open viveknath3222 opened 1 year ago

viveknath3222 commented 1 year ago

Use Case:

I've multiple branches -

  1. Development - On my local I made changes to code and push to development branch and its not connected to any server.

  2. Staging - This branch needs to connect to a staging server. When all the testing is done I'll merge development branch to staging branch.

  3. Main - This branch needs to connect to main server. When all the testing is done I'll merge staging branch to main branch.

Is this posible?

Trainax commented 1 year ago

Yes, it is possible. Try taking a look at this page which explains the workflow syntax.

I think you will be able to do what you want by using the

on:
  push:
    branches:
      - branch_name

filter