Update deployment configuration for development environment and deploy changes to correct directories.
This commit is contained in:
parent
7000c0af14
commit
2ab3d22438
2 changed files with 22 additions and 11 deletions
|
|
@ -59,13 +59,24 @@ jobs:
|
|||
- name: Build Hugo site
|
||||
run: hugo --minify
|
||||
|
||||
- name: Deploy to Server
|
||||
if: env.myEnv_env == 'development'
|
||||
uses: SamKirkland/FTP-Deploy-Action@4.0.0
|
||||
with:
|
||||
protocol: ftps
|
||||
server: ${{ secrets.FTP_SERVER }}
|
||||
username: ${{ secrets.FTP_USERNAME }}
|
||||
password: ${{ secrets.FTP_PASSWORD }}
|
||||
local-dir: public/
|
||||
server-dir: '/'
|
||||
- name: Setup SSH Key
|
||||
uses: webfactory/ssh-agent@v0.5.3
|
||||
with:
|
||||
ssh-private-key: ${{ secrets.VFO_SSH_KEY }}
|
||||
|
||||
- name: Deploy to Development
|
||||
if: env.myEnv_env == 'development'
|
||||
run: |
|
||||
rsync -avz --delete ./ verua.info@verua.info:/preview.verua.info/
|
||||
env:
|
||||
RSYNC_RSH: "ssh -o StrictHostKeyChecking=no"
|
||||
|
||||
- name: Deploy to Production
|
||||
if: env.myEnv_env == 'production'
|
||||
run: |
|
||||
rsync -avz --delete ./ verua.info@verua.info:/httpdocs/
|
||||
env:
|
||||
RSYNC_RSH: "ssh -o StrictHostKeyChecking=no"
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue