Skip to content

Merge pull request #428 from dylan8902/feature/christmas-jumpers #42

Merge pull request #428 from dylan8902/feature/christmas-jumpers

Merge pull request #428 from dylan8902/feature/christmas-jumpers #42

Workflow file for this run

name: Deploy
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
environment:
name: Production
url: https://dyl.anjon.es/
steps:
- name: Install SSH key
uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.SSH_PRIVATE_KEY }}
known_hosts: placeholder
- name: Adding host to known hosts
run: ssh-keyscan -H ${{ secrets.SSH_HOST }} >> ~/.ssh/known_hosts
- name: Run deploy script
run: ssh ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }} '/home/rails/bin/deploy'