Skip to content

Dev (#5)

Dev (#5) #49

Workflow file for this run

---
name: deploy-prod
"on":
push:
branches: ["master"]
workflow_dispatch:
permissions:
contents: write
jobs:
deploy-prod:
runs-on: [self-hosted, prod]
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
- name: Init
run: |
rm -rf .venv
python3 -m venv .venv
source .venv/bin/activate
pip install wheel
pip install -r requirements.txt
- name: Clean up
run: |
source .venv/bin/activate
make clean
- name: Build (nutra.tk)
env:
NUTRA_BLOG_BASE_URL: https://nutra.tk/blog
run: |
source .venv/bin/activate
make publish
- name: Deploy (nutra.tk)
run: |
rm -rf /var/www/blog/*
cp -rp output/* /var/www/blog/
make clean