Skip to content

Create 2024.08.20-persuade-with-intent.md #511

Create 2024.08.20-persuade-with-intent.md

Create 2024.08.20-persuade-with-intent.md #511

name: Deploy to Production
on:
push:
branches:
- 'main'
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Check out main branch
uses: actions/checkout@master
with:
ref: main
# - run: /usr/bin/python3 -m pip install --upgrade pip
- run: /usr/bin/python3 -m pip install --upgrade setuptools
- run: /usr/bin/python3 -m pip install --upgrade mkdocs
- run: /usr/bin/python3 -m pip install --upgrade mkdocs-minify-plugin
- run: git fetch -p
- run: /usr/bin/python3 -m mkdocs gh-deploy -f website/mkdocs.yml -b website
deploy:
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to Production
uses: fifsky/ssh-action@master
with:
command: cd && cd www && git pull origin website
host: ${{ secrets.HOSTNAME }}
key: ${{ secrets.PRIVATE_KEY }}
port: ${{ secrets.PORT_NUMBER }}
user: ${{ secrets.USERNAME }}