Merge pull request #1 from jstoobysmith/patch-1 #6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |