Skip to content

Commit

Permalink
chore: log build stdout on github action when executed on remote server
Browse files Browse the repository at this point in the history
  • Loading branch information
MKCG committed Jan 10, 2024
1 parent f8912ea commit b31b405
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/seo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name: 'SEO'

on:
push:
branches: [main]
branches: [main, remote_build_stdout_on_github]
workflow_dispatch:
schedule:
- cron: '0 1 * * *'
Expand Down Expand Up @@ -36,7 +36,7 @@ jobs:
SSH_HOST: ${{ secrets[matrix.host] }}

- name: Deploy to production
run: ssh -v -i ./deploy.key www-data@$SSH_HOST '/opt/docker/app/sitemap/deploy.sh >> /var/log/cron_build_sitemap'
run: ssh -i ./deploy.key www-data@$SSH_HOST '/opt/docker/app/sitemap/deploy.sh | tee --append /var/log/cron_build_sitemap'
env:
SSH_HOST: ${{ secrets[matrix.host] }}

Expand Down

0 comments on commit b31b405

Please sign in to comment.