hamnet70/.forgejo/workflows/doc.yaml
Thomas Kolb 1ee298bb9c
All checks were successful
/ build-doc (push) Successful in 14s
/ deploy-doc (push) Successful in 11s
Fix yaml syntax error
2024-08-27 20:46:05 +02:00

26 lines
819 B
YAML

on: [push]
jobs:
build-doc:
runs-on: docker
container:
image: git.tkolb.de/amateurfunk/hamnet70/asciidoctor:1.6
steps:
- uses: actions/checkout@v4
- run: pwd && ls -hla && cd doc && make
- uses: actions/upload-artifact@v3
with:
name: documentation
path: doc/out/
deploy-doc:
needs: build-doc
runs-on: docker
container:
image: git.tkolb.de/amateurfunk/hamnet70/asciidoctor:1.6
steps:
- run: mkdir ~/.ssh && echo "${{ secrets.SSH_KEY }}" > ~/.ssh/id_ed25519 && chmod 0600 ~/.ssh/id_ed25519 && echo "${{ secrets.SSH_KNOWN_HOST }}" > ~/.ssh/known_hosts
- uses: actions/download-artifact@v3
with:
name: documentation
- run: ls -lah
- run: 'rsync -e "ssh -vv -p 2342" ./ deployment@tkolb.de:'