diff --git a/.forgejo/workflows/demo.yml b/.forgejo/workflows/demo.yml index 0cfff15..d37fcba 100644 --- a/.forgejo/workflows/demo.yml +++ b/.forgejo/workflows/demo.yml @@ -5,5 +5,5 @@ jobs: name: debug steps: - uses: actions/checkout@v4 - - name: hugo - uses: ./actions/hugo + - name: sleep + uses: ./actions/sleep diff --git a/actions/sleep/Dockerfile b/actions/sleep/Dockerfile new file mode 100644 index 0000000..085d8fb --- /dev/null +++ b/actions/sleep/Dockerfile @@ -0,0 +1,7 @@ +FROM alpine:latest + +COPY entrypoint.sh /entrypoint.sh +RUN chmod +x /entrypoint.sh + +ENTRYPOINT ["/entrypoint.sh"] + diff --git a/actions/sleep/README.md b/actions/sleep/README.md new file mode 100644 index 0000000..c910951 --- /dev/null +++ b/actions/sleep/README.md @@ -0,0 +1,7 @@ +# Forgejo-Action for building hugo pages + +This Action builds a hugo site and runs both gzip and brotli on static text files so a properly configured webbrowser can serve those precompressed files + +The compression only works on files in the "public" folder of the actions workdir. + + diff --git a/actions/sleep/action.yml b/actions/sleep/action.yml new file mode 100644 index 0000000..f9ebbbd --- /dev/null +++ b/actions/sleep/action.yml @@ -0,0 +1,5 @@ +name: 'sleep' +despriction: 'sleep' +runs: + using: 'docker' + image: 'Dockerfile' diff --git a/actions/sleep/entrypoint.sh b/actions/sleep/entrypoint.sh new file mode 100644 index 0000000..2f7d3db --- /dev/null +++ b/actions/sleep/entrypoint.sh @@ -0,0 +1,4 @@ +#!/bin/sh + +sleep 3 +exit 0