Skip to content

Adds deploy workflow #1

Adds deploy workflow

Adds deploy workflow #1

Workflow file for this run

name: Update and deploy
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install dependencies
run: pip install -r requirements.txt
- name: Compile site
run: python3 format_file.py -ao html
- name: Deploy to server
id: deploy
uses: Pendect/[email protected]
env:
DEPLOY_KEY: ${{secrets.DEPLOY_KEY}}
with:
flags: '-avzr --delete'
options: ''
ssh_options: ''
src: 'html/'
dest: 'recipes.mousereeve.com:~/recipes/html'