Skip to content

Merge pull request #430 from dylan8902/feature/christmas-jumpers #44

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

Merge pull request #430 from dylan8902/feature/christmas-jumpers #44

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'