2024-08-27 21:10:30 +02:00
|
|
|
on: [push]
|
|
|
|
jobs:
|
|
|
|
build-doc:
|
|
|
|
runs-on: docker
|
|
|
|
container:
|
|
|
|
image: git.tkolb.de/amateurfunk/hamnet70/asciidoctor:1.6
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- run: cd doc && make
|
|
|
|
- uses: actions/upload-artifact@v3
|
|
|
|
with:
|
|
|
|
name: documentation
|
|
|
|
path: doc/out/
|
|
|
|
deploy-doc:
|
|
|
|
needs: build-doc
|
|
|
|
runs-on: docker
|
2024-08-27 21:23:18 +02:00
|
|
|
if: github.ref == 'refs/heads/main'
|
2024-08-27 21:10:30 +02:00
|
|
|
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: 'rsync -e "ssh -p 2342" -r . deployment@tkolb.de:'
|