chore: add push-mirror step
This commit is contained in:
parent
a9a190c574
commit
1d46484ca7
1 changed files with 10 additions and 3 deletions
13
.build.yml
13
.build.yml
|
@ -5,17 +5,24 @@ packages:
|
||||||
- pnpm
|
- pnpm
|
||||||
secrets:
|
secrets:
|
||||||
- 291f0e35-9b8d-43ff-844c-77c5f29c1876
|
- 291f0e35-9b8d-43ff-844c-77c5f29c1876
|
||||||
|
- bbfcb6dc-7c4a-42ee-a11a-022f0339a133
|
||||||
environment:
|
environment:
|
||||||
NETLIFY_SITE_ID: bfd69adf-f754-433c-9690-63426f0d2fa0
|
NETLIFY_SITE_ID: bfd69adf-f754-433c-9690-63426f0d2fa0
|
||||||
|
REPO: wcb
|
||||||
|
GH_USER: ayoayco
|
||||||
tasks:
|
tasks:
|
||||||
|
- push-mirror: |
|
||||||
|
cd ~/"${REPO}"
|
||||||
|
git config --global credential.helper store
|
||||||
|
git push --mirror "https://github.com/${GH_USER}/${REPO}"
|
||||||
- install-deps: |
|
- install-deps: |
|
||||||
cd wcb
|
cd ~/"${REPO}"
|
||||||
pnpm i
|
pnpm i
|
||||||
- build: |
|
- build: |
|
||||||
cd wcb
|
cd ~/"${REPO}"
|
||||||
pnpm -F site run build
|
pnpm -F site run build
|
||||||
- deploy: |
|
- deploy: |
|
||||||
cd wcb
|
cd ~/"${REPO}"
|
||||||
{
|
{
|
||||||
set +x
|
set +x
|
||||||
. ~/.buildsecrets
|
. ~/.buildsecrets
|
||||||
|
|
Loading…
Reference in a new issue