add two posts; fix tag on old one (diets -> diet) #140
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: deploy-dev | |
"on": | |
push: | |
branches: ["dev"] | |
jobs: | |
deploy-dev: | |
runs-on: [self-hosted, dev] | |
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 | |
env: | |
NUTRA_BLOG_BASE_URL: https://dev.nutra.tk/blog | |
run: | | |
source .venv/bin/activate | |
make html | |
- name: Install | |
run: | | |
rm -rf /var/www/blog/* | |
cp -rp output/* /var/www/blog/ |