From 883cc95077985e5255001803f5ed35056920a5f0 Mon Sep 17 00:00:00 2001 From: eyedeekay Date: Mon, 5 May 2025 22:47:11 -0400 Subject: [PATCH] use go install to get the github-site-gen in CI --- .github/workflows/page.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/page.yml b/.github/workflows/page.yml index 0379636..5ec4445 100644 --- a/.github/workflows/page.yml +++ b/.github/workflows/page.yml @@ -30,7 +30,9 @@ jobs: - name: Build Site Generator run: | - go build -o github-site-gen ./cmd/github-site-gen/main.go + go install github.com/go-i2p/go-gh-page/cmd/github-site-gen@latest + cp -v "$GOPATH/bin/github-site-gen" ./github-site-gen + # Ensure the binary is executable chmod +x github-site-gen - name: Generate Site @@ -47,9 +49,6 @@ jobs: # Add a .gitattributes file to ensure consistent line endings echo "* text=auto" > ./site/.gitattributes - - # Copy the style.css to the root of the site - cp ./pkg/templates/style.css ./site/style.css - name: Deploy to GitHub Pages uses: JamesIves/github-pages-deploy-action@v4