Skip to content

Merge pull request #1 from jstoobysmith/patch-1 #6

Merge pull request #1 from jstoobysmith/patch-1

Merge pull request #1 from jstoobysmith/patch-1 #6

name: Mirror to personal repo (Vercel)
on:
push:
branches: ['**']
delete:
jobs:
mirror:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Push to personal mirror
env:
MIRROR_PAT: ${{ secrets.MIRROR_PAT }}
run: |
git config --unset-all http.https://github.com/.extraheader || true
git config --global credential.helper store
echo "https://x-access-token:${MIRROR_PAT}@github.com" > ~/.git-credentials
git remote add mirror https://github.com/Gabrielebattimelli/Physlib-Website.git
git push mirror --all
git push mirror --tags