TOSV25/.forgejo/workflows/deploy.yml
Thomas Berker eb244699c4
Some checks failed
Deploy MkDocs / deploy (push) Failing after 38s
change ip
2025-01-06 11:12:25 +01:00

32 lines
877 B
YAML

name: Deploy MkDocs
on:
push:
branches:
- main # or master, depending on your default branch
jobs:
deploy:
runs-on: ubuntu-20.04
container: node:18
steps:
- uses: actions/checkout@v4
- name: Install mkdocs and rsync
run: |
apt update
apt install -y mkdocs mkdocs-bootstrap mkdocs-nature mkdocs-material mkdocs-autorefs rsync
- name: Install SSH key
uses: https://github.com/shimataro/ssh-key-action@v2
with:
key: ${{ secrets.SSH_PRIVATE_KEY }}
known_hosts: ${{ secrets.SSH_KNOWN_HOSTS }}
- name: Build site
run: mkdocs build
- name: Sync
run: rsync -avz site/ berker@192.168.1.2:/home/berker/nginxproxymanager/data/site
- uses: actions/upload-artifact@v3
with:
name: many-artifacts
path: site/