Skip to content

add deploy

add deploy #1

Workflow file for this run

name: Deploy
on:
push:
branches: ['main']
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@main
- name: Deploy Website
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.REMOTE_HOST }}
username: ${{ secrets.REMOTE_USER }}
key: ${{ secrets.REMOTE_PRIVATE_KEY }}
port: ${{ secrets.REMOTE_PORT }}
script: |
export NVM_DIR=~/.nvm
source ~/.nvm/nvm.sh
sh deploy-reddit-viewer.sh