diff --git a/.github/workflows/mirror-to-gitea.yml b/.github/workflows/mirror-to-gitea.yml index 7b7b11d..8a68e05 100644 --- a/.github/workflows/mirror-to-gitea.yml +++ b/.github/workflows/mirror-to-gitea.yml @@ -16,13 +16,35 @@ jobs: with: fetch-depth: 0 + - name: Configure Git + run: | + git config --global user.name "GitHub Actions" + git config --global user.email "actions@github.com" + - name: Mirror to Gitea env: GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }} GITEA_USERNAME: ${{ secrets.GITEA_USERNAME }} run: | + # Validate secrets are set + if [ -z "$GITEA_TOKEN" ] || [ -z "$GITEA_USERNAME" ]; then + echo "Error: GITEA_TOKEN or GITEA_USERNAME secrets not set" + exit 1 + fi + REPO_NAME=$(basename $GITHUB_REPOSITORY) - git remote add gitea https://$GITEA_USERNAME:$GITEA_TOKEN@gitea.jeffemmett.com/jeffemmett/$REPO_NAME.git || true + GITEA_URL="https://${GITEA_USERNAME}:${GITEA_TOKEN}@gitea.jeffemmett.com/jeffemmett/${REPO_NAME}.git" + + # Remove existing remote if present, then add fresh + git remote remove gitea 2>/dev/null || true + git remote add gitea "$GITEA_URL" + + # Push with verbose output for debugging + echo "Pushing all branches to Gitea..." git push gitea --all --force + + echo "Pushing tags to Gitea..." git push gitea --tags --force + echo "Mirror complete!" + diff --git a/app/page.tsx b/app/page.tsx index 03321eb..ecf6feb 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -6,6 +6,7 @@ import { ImageGallery } from "@/components/image-gallery" import { ContentSection } from "@/components/content-section" import { MycopunkSection } from "@/components/mycopunk-section" import { CTASection } from "@/components/cta-section" +import { NewsletterSignup } from "@/components/newsletter-signup" import { Footer } from "@/components/footer" import { HyphalCanvas } from "@/components/hyphal-canvas" @@ -22,6 +23,7 @@ export default function Home() { +