From 23bfba487105654771e2cf9e3e08361b4fdb30b1 Mon Sep 17 00:00:00 2001 From: Sergio Durigan Junior Date: Sat, 14 Sep 2024 18:56:47 -0400 Subject: [PATCH] Init Plausible module during build Signed-off-by: Sergio Durigan Junior --- .forgejo/workflows/deploy.yaml | 4 +++- go.mod | 3 --- 2 files changed, 3 insertions(+), 4 deletions(-) delete mode 100644 go.mod diff --git a/.forgejo/workflows/deploy.yaml b/.forgejo/workflows/deploy.yaml index cebfc53..3355946 100644 --- a/.forgejo/workflows/deploy.yaml +++ b/.forgejo/workflows/deploy.yaml @@ -28,7 +28,9 @@ jobs: chmod 0700 ~/.ssh chmod 0700 ~/.ssh/id_rsa - name: Prepare modules - run: /usr/bin/hugo mod get -u + run: | + /usr/bin/hugo mod init github.com/divinerites/plausible-hugo + /usr/bin/hugo mod get -u - name: Run Hugo run: /usr/bin/hugo --logLevel info - name: Run rsync diff --git a/go.mod b/go.mod deleted file mode 100644 index 855ebe4..0000000 --- a/go.mod +++ /dev/null @@ -1,3 +0,0 @@ -module github.com/divinerites/plausible-hugo - -go 1.22.5