hamnet70/.forgejo/workflows/doc.yaml
Thomas Kolb 0b48995cec
All checks were successful
/ build-hamnet70 (push) Successful in 29s
/ build-doc (push) Successful in 17s
/ deploy-doc (push) Successful in 12s
workflows: use latest version of asciidoctor container
2024-10-24 21:20:12 +02:00

26 lines
818 B
YAML

on: [push]
jobs:
build-doc:
runs-on: docker
container:
image: git.tkolb.de/amateurfunk/hamnet70/asciidoctor:1.7
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
if: github.ref == 'refs/heads/main'
container:
image: git.tkolb.de/amateurfunk/hamnet70/asciidoctor:1.7
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:'