2024-08-26 00:08:16 +02:00
|
|
|
on: [push]
|
|
|
|
jobs:
|
|
|
|
build-doc:
|
|
|
|
runs-on: docker
|
|
|
|
container:
|
2024-08-27 19:00:18 +02:00
|
|
|
image: git.tkolb.de/amateurfunk/hamnet70/asciidoctor:1.4
|
2024-08-26 00:08:16 +02:00
|
|
|
steps:
|
2024-08-26 00:20:05 +02:00
|
|
|
- uses: actions/checkout@v4
|
2024-08-26 00:11:11 +02:00
|
|
|
- run: pwd && ls -hla && cd doc && make
|
2024-08-26 07:58:04 +02:00
|
|
|
- uses: actions/upload-artifact@v3
|
2024-08-26 00:08:16 +02:00
|
|
|
with:
|
|
|
|
name: documentation
|
|
|
|
path: doc/out/
|
2024-08-27 19:56:38 +02:00
|
|
|
deploy:
|
|
|
|
needs: build-doc
|
|
|
|
runs-on: docker
|
|
|
|
container:
|
|
|
|
image: git.tkolb.de/amateurfunk/hamnet70/asciidoctor:1.4
|
|
|
|
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 -p 2342" ./ tkolb.de:/var/www/0fm.de
|