From 79d6e722e7aeb4c0dc76afdd028e31b08527575f Mon Sep 17 00:00:00 2001 From: Hugo Renard Date: Mon, 23 Sep 2024 15:17:12 +0200 Subject: [PATCH] ci: add forgejo action --- .forgejo/workflows/main.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .forgejo/workflows/main.yaml diff --git a/.forgejo/workflows/main.yaml b/.forgejo/workflows/main.yaml new file mode 100644 index 0000000..d715824 --- /dev/null +++ b/.forgejo/workflows/main.yaml @@ -0,0 +1,20 @@ +on: [push] +env: + HUGO_VERSION: 0.79.0 +jobs: + build: + runs-on: docker + container: + image: docker.io/node:20-alpine + steps: + - uses: actions/checkout@v4 + - run: | + apk add --no-cache wget ca-certificates + wget -O hugo.tar.gz https://github.com/gohugoio/hugo/releases/download/v${{ env.HUGO_VERSION }}}/hugo_${{ env.HUGO_VERSION }}_Linux-64bit.tar.gz + tar xzf hugo.tar.gz hugo + apk add --no-cache nodejs-current npm + - run: ./hugo --minify + - uses: actions/upload-artifact@v3 + with: + name: public + path: public/