remove release action & add rsync action
Some checks failed
mkdocs build / build (push) Failing after 3s
Some checks failed
mkdocs build / build (push) Failing after 3s
This commit is contained in:
parent
712ad5ac83
commit
8d7a64cc9a
10
.actions/rsync/Dockerfile
Normal file
10
.actions/rsync/Dockerfile
Normal 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"]
|
3
.actions/rsync/action.yml
Normal file
3
.actions/rsync/action.yml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
name: 'rsync wiki files'
|
||||||
|
description: 'custom gitea action for rsync wiki files'
|
||||||
|
author: 'ludal'
|
3
.actions/rsync/entrypoint.sh
Normal file
3
.actions/rsync/entrypoint.sh
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
/usr/bin/rsync -avz --delete /workspace/ludal/wiki/_site/ rsync://192.168.1.9/wiki/
|
@ -12,12 +12,15 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- name: Mkdocs build
|
- name: Mkdocs build
|
||||||
uses: ./mkdocs-build-action/ # Uses an action in this directory
|
uses: ./.actions/mkdocs-build/ # Uses an action in this directory
|
||||||
- name: Create release
|
- name: rsync files
|
||||||
uses: akkuman/gitea-release-action@v1
|
uses: ./.actions/rsync/
|
||||||
with:
|
# # working, but i don't need this
|
||||||
files: |-
|
# - name: Create release
|
||||||
_site/**
|
# uses: akkuman/gitea-release-action@v1
|
||||||
token: "${{ secrets.RELEASE_TOKEN }}"
|
# with:
|
||||||
|
# files: |-
|
||||||
|
# _site/**
|
||||||
|
# token: "${{ secrets.RELEASE_TOKEN }}"
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user