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
|
- name: Build Hugo site
|
||||||
run: hugo --minify
|
run: hugo --minify
|
||||||
|
|
||||||
- name: Deploy to Server
|
- name: Setup SSH Key
|
||||||
if: env.myEnv_env == 'development'
|
uses: webfactory/ssh-agent@v0.5.3
|
||||||
uses: SamKirkland/FTP-Deploy-Action@4.0.0
|
with:
|
||||||
with:
|
ssh-private-key: ${{ secrets.VFO_SSH_KEY }}
|
||||||
protocol: ftps
|
|
||||||
server: ${{ secrets.FTP_SERVER }}
|
- name: Deploy to Development
|
||||||
username: ${{ secrets.FTP_USERNAME }}
|
if: env.myEnv_env == 'development'
|
||||||
password: ${{ secrets.FTP_PASSWORD }}
|
run: |
|
||||||
local-dir: public/
|
rsync -avz --delete ./ verua.info@verua.info:/preview.verua.info/
|
||||||
server-dir: '/'
|
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"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
env: production
|
env: development
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue