forked from IT-Syndikat/its-network
27 lines
787 B
YAML
27 lines
787 B
YAML
name: ci # (1)!
|
|
on:
|
|
push:
|
|
branches:
|
|
- master # (2)!
|
|
- main
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: write
|
|
jobs:
|
|
deploy:
|
|
container:
|
|
image: tea.srv.it-syndikat.org/arch/archimage:latest
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
lfs: true
|
|
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV # (3)!
|
|
- name: "Build mkdocs site"
|
|
run: |
|
|
mkdocs build
|
|
echo "${{ secrets.SSH_DOCS }}" > ~/.ssh/id_ed25519
|
|
echo "web.srv.it-syndikat.org ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHBRXGn/UNvz31QMDm1jqR+97aZ0xy6kQS9wnuDOukET" >> ~/.ssh/known_hosts
|
|
chmod -R 700 ~/.ssh
|
|
rsync -vva --delete-after site/* deployer@web.srv.it-syndikat.org:/
|