Skip to content

Deploy

Deploy #4270

Workflow file for this run

name: Deploy
concurrency:
group: deploy
on:
push:
branches: [ master ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
deploy:
environment: vaterstetten-in-zahlen.de
runs-on: ubuntu-latest
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- name: executing remote ssh commands using ssh key
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.SSH_KEY }}
script_stop: true
command_timeout: 120m
script: |
cd ${{ secrets.DEPLOYMENT_PATH }}
git pull
Rscript -e "renv::restore()"
XDG_RUNTIME_DIR=/run/user/`id -u` systemctl --user restart vaterstetten-in-zahlen.service