Skip to content

Commit

Permalink
Setup basic CD pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
kmiller96 committed Dec 16, 2023
1 parent 4f8ec72 commit 2b699e8
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: CD

on:
push:
branches: [master]

jobs:
push-to-vm:
name: Push to VM
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup python
uses: actions/setup-python@v2
with:
python-version: "3.9"

- name: Install Virtual Environment
run: pip install -r requirements.txt

- name: Build site
run: make build

- name: Push to VM
uses: appleboy/scp-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.KEY }}
source: "output/"
target: "kalemiller.com/blog/"

0 comments on commit 2b699e8

Please sign in to comment.