deployphp / action

GitHub Action for Deployer
MIT License
222 stars 44 forks source link

How to set directory where deploy has to be made #57

Closed knewitzgui closed 1 year ago

knewitzgui commented 1 year ago

im trying to create a deploy workflow but i need to deploy the application on a subdomain, how i set the directory of the server where the deploy need to be made? Already tried working-directory and run a cd in the path that i need, nothing worked.

image

Upvote & Fund

Fund with Polar

benjaminmal commented 1 year ago

You have to set up a deploy_path like this:

-   name: Test deploy
    uses: deployphp/action@v1
    with:
        dep: deploy localhost -o deploy_path=my_deploy_path/deploy-test
        private-key: ${{ secrets.HOST_SSH_KEY }}

With a new localhost host:

# deploy.yaml

hosts:
    localhost:
        local: true

If your subdomain is not a localhost, just override the deploy_path.