Skip to content

Commit

Permalink
deploy to main mail
Browse files Browse the repository at this point in the history
  • Loading branch information
YannickFuereder committed Apr 13, 2024
1 parent d377852 commit db92731
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,11 @@ jobs:
ssh staging "sudo sed -i 's@!<oauth_client_secret>@${{ secrets.OAUTH_CLIENT_SECRET }}@g' /home/$SSH_USER/$REPO_NAME/roundcubemail-1.7-git/config/config.inc.php"
- name: Delete current deployed files
run: ssh staging 'sudo rm -r -d /var/www/mail2/'
run: ssh staging 'sudo rm -r -d /var/www/mail/'
continue-on-error: true

- name: Copy files
run: ssh staging "sudo rsync -a --ignore-existing /home/$SSH_USER/$REPO_NAME/roundcubemail-1.7-git/ /var/www/mail2/"
run: ssh staging "sudo rsync -a --ignore-existing /home/$SSH_USER/$REPO_NAME/roundcubemail-1.7-git/ /var/www/mail/"

- name: Set permissions
run: ssh staging "sudo chown -R www-data:www-data /var/www/mail2/"
run: ssh staging "sudo chown -R www-data:www-data /var/www/mail/"

0 comments on commit db92731

Please sign in to comment.