Skip to content

Create a_mans_value_is_in_his_strength.md #9

Create a_mans_value_is_in_his_strength.md

Create a_mans_value_is_in_his_strength.md #9

Workflow file for this run

name: CD
on:
workflow_dispatch:
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.SSH_KEY }}
source: "output/"
target: "kalemiller.com/blog/"
strip_components: 1
rm: true
- name: Restart Caddy container
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.SSH_KEY }}
script: docker container restart caddy