Skip to content

Merge pull request #10 from okfn-brasil/main #3

Merge pull request #10 from okfn-brasil/main

Merge pull request #10 from okfn-brasil/main #3

Workflow file for this run

name: Deploy Dev
on:
push:
branches: [ dev ]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Sync
env:
dest: '${{vars.USER}}@${{vars.HOST}}:${{vars.THEMEPATHDEV}}'
run: |
echo "${{secrets.DEPLOY_KEY}}" > deploy_key
chmod 600 ./deploy_key
rsync -chav --delete \
-e 'ssh -i ./deploy_key -o StrictHostKeyChecking=no' \
--exclude /deploy_key \
--exclude /node_modules/ \
./ ${{env.dest}}
- name: SSH Remote Commands
uses: appleboy/[email protected]
with:
host: ${{vars.HOST}}
username: ${{vars.USER}}
key: ${{secrets.DEPLOY_KEY}}
script: |
cd ${{vars.THEMEPATHDEV}}
git checkout dev
docker exec dev-site-okbr-wpcli-1 wp theme activate site-okbr