Skip to content

Deploy to VPS by @MattEstHaut #2

Deploy to VPS by @MattEstHaut

Deploy to VPS by @MattEstHaut #2

Workflow file for this run

name: Deploy to VPS on push
run-name: Deploy to VPS by @${{ github.actor }}
on:
push:
branches:
- master
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Pull and build
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
script_stop: true
script: |
source /home/${{ secrets.USERNAME }}/.bashrc
cd /home/${{ secrets.USERNAME }}/Victoire
git pull origin master
zig build -Doptimize=ReleaseFast