Skip to content

Commit

Permalink
testando workflow em dev
Browse files Browse the repository at this point in the history
  • Loading branch information
rotchajunior committed Jan 16, 2025
1 parent 14f46dd commit c03e5c8
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 3 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
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 /.git/ \
--exclude /.github/ \
--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
3 changes: 1 addition & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,4 @@ jobs:
script: |
cd ${{vars.THEMEPATHPROD}}
git checkout main
wp theme activate site --allow-root
wp nginx-helper purge-all --allow-root
docker exec dev-site-okbr-wpcli-1 wp theme activate site-okbr
2 changes: 1 addition & 1 deletion style.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Theme Name: OKBR
Theme Name: Site OKBR
Author: Tapronto + Cafe.art.br
Author URI: http://tapronto.com.br/
*/

0 comments on commit c03e5c8

Please sign in to comment.