Skip to content

Merge pull request #413 from dylan8902/pub-thursday-audit #26

Merge pull request #413 from dylan8902/pub-thursday-audit

Merge pull request #413 from dylan8902/pub-thursday-audit #26

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'