remove release action & add rsync action
Some checks failed
mkdocs build / build (push) Failing after 3s

This commit is contained in:
2024-08-29 16:56:43 +02:00
parent 712ad5ac83
commit 8d7a64cc9a
7 changed files with 26 additions and 7 deletions

View File

@ -0,0 +1,9 @@
FROM python:latest
RUN python3 -m pip install mkdocs mkdocs-material mkdocs-git-revision-date-localized-plugin mkdocs-swan mkdocs-helm mkdocs-licenseinfo mkdocs-multilang mkdocs-autozip
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]

View File

@ -0,0 +1,25 @@
name: 'MkDocs Build'
description: 'Build your MkDocs projects'
inputs:
config-file:
description: 'The path to the MkDocs configuration file'
required: false
default: 'mkdocs.yml'
output-dir:
description: 'The directory to output the HTML site to, relative to workdir (see below)'
required: false
default: '_site'
workdir:
description: 'The root directory of your project (which contains the `docs` dir)'
required: false
default: '.'
runs:
using: 'docker'
image: 'Dockerfile'
args:
- ${{ inputs.config-file }}
- ${{ inputs.output-dir }}
- ${{ inputs.workdir }}
branding:
icon: 'book'
color: 'blue'

View File

@ -0,0 +1,11 @@
#!/bin/bash
set -eux
cd "$3"
if test -d .git; then
git config --global --add safe.directory "$(realpath "$3")"
fi
mkdocs build --config-file "$1" --site-dir "$2"

10
.actions/rsync/Dockerfile Normal file
View File

@ -0,0 +1,10 @@
FROM debian:stable-slim
RUN apt update
RUN apt install -y rsync
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]

View File

@ -0,0 +1,3 @@
name: 'rsync wiki files'
description: 'custom gitea action for rsync wiki files'
author: 'ludal'

View File

@ -0,0 +1,3 @@
#!/bin/sh
/usr/bin/rsync -avz --delete /workspace/ludal/wiki/_site/ rsync://192.168.1.9/wiki/