perf: speed up algolia π + split out search suggestion logic (#1271) #3
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 | |
| on: | |
| push: | |
| branches: | |
| - main | |
| tags: | |
| - '*' | |
| permissions: | |
| contents: read | |
| jobs: | |
| mirror: | |
| name: πΈοΈ Mirror to Tangled | |
| runs-on: ubuntu-24.04-arm | |
| steps: | |
| - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | |
| with: | |
| fetch-depth: 0 | |
| - name: π Configure SSH | |
| env: | |
| TANGLED_SSH_KEY: ${{ secrets.TANGLED_SSH_KEY }} | |
| run: | | |
| mkdir -p ~/.ssh | |
| echo "$TANGLED_SSH_KEY" > ~/.ssh/id_ed25519 | |
| chmod 600 ~/.ssh/id_ed25519 | |
| ssh-keyscan -t ed25519 tangled.org >> ~/.ssh/known_hosts 2>/dev/null | |
| - name: β¬οΈ Push to Tangled | |
| run: | | |
| git remote add tangled git@tangled.org:npmx.dev/npmx.dev | |
| git push tangled main --force | |
| git push tangled --tags --force |