Skip to content

Commit

Permalink
Adds deploy workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Mouse Reeve committed Sep 3, 2023
1 parent a49b505 commit f9043bf
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
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'

0 comments on commit f9043bf

Please sign in to comment.