Skip to content

Commit

Permalink
Merge branch 'main' of github.com:commonknowledge/wordpress-starter-t…
Browse files Browse the repository at this point in the history
…emplate
  • Loading branch information
joaquimds committed Oct 14, 2024
2 parents e8dd61a + b2645b5 commit 5ced380
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 43 deletions.
41 changes: 21 additions & 20 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,26 +9,27 @@ jobs:
deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up SSH
uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
# Uncomment the following for a standard deployment to Kinsta
# steps:
# - name: Checkout code
# uses: actions/checkout@v4
# - name: Set up SSH
# uses: webfactory/[email protected]
# with:
# ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}

# - name: Add GitHub to known hosts
# run: |
# ssh-keyscan -H github.com >> ~/.ssh/known_hosts

- name: Add GitHub to known hosts
run: |
ssh-keyscan -H github.com >> ~/.ssh/known_hosts
# - name: Check SSH connection
# run: |
# ssh -o StrictHostKeyChecking=no -A ${{ secrets.SSH_USER_HOST }} -p ${{ secrets.SSH_PORT }} "echo 'SSH connection successful'"

- name: Check SSH connection
run: |
ssh -o StrictHostKeyChecking=no -A ${{ secrets.SSH_USER_HOST }} -p ${{ secrets.SSH_PORT }} "echo 'SSH connection successful'"
# - name: Verify forwarded SSH key on remote server
# run: |
# ssh -o StrictHostKeyChecking=no -A ${{ secrets.SSH_USER_HOST }} -p ${{ secrets.SSH_PORT }} 'ssh-add -l'

- name: Verify forwarded SSH key on remote server
run: |
ssh -o StrictHostKeyChecking=no -A ${{ secrets.SSH_USER_HOST }} -p ${{ secrets.SSH_PORT }} 'ssh-add -l'
- name: Run git pull on the remote server
run: |
ssh -o StrictHostKeyChecking=no -A ${{ secrets.SSH_USER_HOST }} -p ${{ secrets.SSH_PORT }} 'cd public && git pull && composer install --no-dev --no-scripts ; wp plugin activate --all'
# - name: Run git pull on the remote server
# run: |
# ssh -o StrictHostKeyChecking=no -A ${{ secrets.SSH_USER_HOST }} -p ${{ secrets.SSH_PORT }} 'cd public && git pull && composer install --no-dev --no-scripts ; wp plugin activate --all'
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"oscarotero/env": "^2.1",
"roots/bedrock-autoloader": "^1.0.4",
"roots/bedrock-disallow-indexing": "^2.0",
"roots/wordpress": "6.6.1",
"roots/wordpress": "6.6.2",
"roots/wp-config": "1.0.0",
"roots/wp-password-bcrypt": "1.1.0",
"wpackagist-plugin/wordpress-importer": "^0.8.0",
Expand Down
32 changes: 16 additions & 16 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions web/app/themes/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5ced380

Please sign in to comment.