Skip to content

update text

update text #37

Workflow file for this run

name: CI
on:
push:
branches: [main]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v4
with:
python-version: '3.8'
- name: Install Python dependencies
uses: py-actions/py-dependency-install@v3
with:
path: "requirements.txt"
- name: Build site
run: python build.py
- name: Configure SSH
run: |
mkdir -p ~/.ssh/
echo "$SSH_KEY" > ~/.ssh/srv.key
chmod 600 ~/.ssh/srv.key
cat >>~/.ssh/config <<END
Host srv
HostName $SSH_HOST
User $SSH_USER
IdentityFile ~/.ssh/srv.key
StrictHostKeyChecking no
END
env:
SSH_USER: ${{ secrets.SSH_USER }}
SSH_KEY: ${{ secrets.SSH_KEY }}
SSH_HOST: ${{ secrets.SSH_HOST }}
- name: Copy site to deploy
run: rsync -r ./output/ srv:/srv/http/mbct/output