2024-11-07 19:09:57 +00:00
|
|
|
name: Build, push and deploy
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
builds:
|
|
|
|
runs-on: slimbook-ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: checkout code
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
2024-11-07 22:07:13 +00:00
|
|
|
- name: rclone to remote
|
|
|
|
run: |
|
|
|
|
ls -lha
|
|
|
|
echo ${{ secrets.ID_ED25519 }} > ./id_ed25519
|
2024-11-07 22:08:46 +00:00
|
|
|
rsync -avz --delete --exclude=".env" --exclude="storage/logs/laravel.log" --exclude="laravel/node_modules" -e "ssh -i ./id_ed25519" ./ albert@217.160.204.114:/var/www/vhosts/electricistasdana.com/httpdocs
|