From 1d46484ca71a165f08eebb5d9d0eed96f744e1d0 Mon Sep 17 00:00:00 2001 From: Ayo Ayco Date: Sat, 8 Feb 2025 19:36:29 +0100 Subject: [PATCH] chore: add push-mirror step --- .build.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.build.yml b/.build.yml index 012f766..aa10890 100644 --- a/.build.yml +++ b/.build.yml @@ -5,17 +5,24 @@ packages: - pnpm secrets: - 291f0e35-9b8d-43ff-844c-77c5f29c1876 + - bbfcb6dc-7c4a-42ee-a11a-022f0339a133 environment: NETLIFY_SITE_ID: bfd69adf-f754-433c-9690-63426f0d2fa0 + REPO: wcb + GH_USER: ayoayco tasks: + - push-mirror: | + cd ~/"${REPO}" + git config --global credential.helper store + git push --mirror "https://github.com/${GH_USER}/${REPO}" - install-deps: | - cd wcb + cd ~/"${REPO}" pnpm i - build: | - cd wcb + cd ~/"${REPO}" pnpm -F site run build - deploy: | - cd wcb + cd ~/"${REPO}" { set +x . ~/.buildsecrets