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