mirror of
https://github.com/go-i2p/go-gh-page.git
synced 2025-06-16 14:24:40 -04:00
use go install to get the github-site-gen in CI
This commit is contained in:
7
.github/workflows/page.yml
vendored
7
.github/workflows/page.yml
vendored
@ -30,7 +30,9 @@ jobs:
|
|||||||
|
|
||||||
- name: Build Site Generator
|
- name: Build Site Generator
|
||||||
run: |
|
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
|
chmod +x github-site-gen
|
||||||
|
|
||||||
- name: Generate Site
|
- name: Generate Site
|
||||||
@ -47,9 +49,6 @@ jobs:
|
|||||||
|
|
||||||
# Add a .gitattributes file to ensure consistent line endings
|
# Add a .gitattributes file to ensure consistent line endings
|
||||||
echo "* text=auto" > ./site/.gitattributes
|
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
|
- name: Deploy to GitHub Pages
|
||||||
uses: JamesIves/github-pages-deploy-action@v4
|
uses: JamesIves/github-pages-deploy-action@v4
|
||||||
|
Reference in New Issue
Block a user