Skip to content

Merge pull request #2 from Geo25rey/auth-middleware #30

Merge pull request #2 from Geo25rey/auth-middleware

Merge pull request #2 from Geo25rey/auth-middleware #30

Workflow file for this run

name: Deploy
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the live branch
push:
branches: [ main ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
deploy:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: log into VPS and trigger deploy script
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST }} # uses secrets stored in the Secrets tab
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
port: ${{ secrets.PORT }}
script: cd cdn-daemon; sh deploy.sh