Files
start/.gitea/workflows/deploy.yaml
Daniel Cortés 98ee4a329b
All checks were successful
CD for startPage / build (push) Successful in 8s
CD for startPage / deploy (push) Successful in 13s
Corriendo RSYNC
2023-07-01 01:49:27 -04:00

31 lines
763 B
YAML

name: CD for startPage
on:
push:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run build step
run: ./build.sh
deploy:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run build step
run: ./build.sh
- name: Configure Server
run: |
apt update && apt install rsync -y
echo "${{ secrets.SERVER_PRIVATE_KEY }}" > private_key && chmod 600 private_key
export SSH_COMMAND="ssh -o StrictHostKeyChecking=no -i private_key -p ${{ secrets.SSH_PORT || 22 }}"
rsync -vrz -e "$SSH_COMMAND" public/ ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }}:/var/www/start.skrd.fun/