Skip to content

Deploy

Deploy #98

Workflow file for this run

name: Deploy
on:
workflow_dispatch:
inputs:
is_production:
description: 'Deploy to production? (defaults to staging)'
required: true
default: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Update server
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.KEY }}
script: |
if [ "${{ github.event.inputs.is_production }}" == "true" ]; then
./ENF-Build-Docs-Production.sh
else
./ENF-Build-Docs-Staging.sh
fi