From 5fb8877cd797a93d9b96229310de5cc392bfac5f Mon Sep 17 00:00:00 2001 From: lubiana Date: Sun, 15 Dec 2024 17:27:59 +0100 Subject: [PATCH] test --- .forgejo/workflows/demo.yml | 5 +---- actions/{hugo-two => hugo-three}/Dockerfile | 0 actions/{hugo-two => hugo-three}/README.md | 0 actions/{hugo-two => hugo-three}/action.yml | 0 actions/hugo-three/entrypoint.sh | 8 ++++++++ actions/hugo-two/entrypoint.sh | 8 -------- 6 files changed, 9 insertions(+), 12 deletions(-) rename actions/{hugo-two => hugo-three}/Dockerfile (100%) rename actions/{hugo-two => hugo-three}/README.md (100%) rename actions/{hugo-two => hugo-three}/action.yml (100%) create mode 100755 actions/hugo-three/entrypoint.sh delete mode 100755 actions/hugo-two/entrypoint.sh diff --git a/.forgejo/workflows/demo.yml b/.forgejo/workflows/demo.yml index 13b6d29..eab36aa 100644 --- a/.forgejo/workflows/demo.yml +++ b/.forgejo/workflows/demo.yml @@ -6,7 +6,4 @@ jobs: steps: - uses: actions/checkout@v4 - name: hello world action step - uses: ./actions/hugo-two - - name: show files - run: ls -lR - + uses: ./actions/hugo-three diff --git a/actions/hugo-two/Dockerfile b/actions/hugo-three/Dockerfile similarity index 100% rename from actions/hugo-two/Dockerfile rename to actions/hugo-three/Dockerfile diff --git a/actions/hugo-two/README.md b/actions/hugo-three/README.md similarity index 100% rename from actions/hugo-two/README.md rename to actions/hugo-three/README.md diff --git a/actions/hugo-two/action.yml b/actions/hugo-three/action.yml similarity index 100% rename from actions/hugo-two/action.yml rename to actions/hugo-three/action.yml diff --git a/actions/hugo-three/entrypoint.sh b/actions/hugo-three/entrypoint.sh new file mode 100755 index 0000000..256fe56 --- /dev/null +++ b/actions/hugo-three/entrypoint.sh @@ -0,0 +1,8 @@ +#!/bin/sh + +hugo +find ./public -type f -regex ".*\.\(css\|html\|js\|json\|svg\|xml\)$" \ + -exec brotli --best -f {} \+ \ + -exec gzip --best -k -f {} \+ +sleep 3 +exit 0 diff --git a/actions/hugo-two/entrypoint.sh b/actions/hugo-two/entrypoint.sh deleted file mode 100755 index ed3a3fa..0000000 --- a/actions/hugo-two/entrypoint.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/sh - -#hugo -#find ./public -type f -regex ".*\.\(css\|html\|js\|json\|svg\|xml\)$" \ -# -exec brotli --best -f {} \+ \ -# -exec gzip --best -k -f {} \+ -sleep 3 -exit 0