registry: update versions from tags (#436) #62
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: Deploy registry web | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - "registry.json" | |
| - "index/**/*.json" | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: deploy-registry-web | |
| cancel-in-progress: true | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Trigger Vercel deploy hook | |
| env: | |
| VERCEL_DEPLOY_HOOK: ${{ secrets.VERCEL_REGISTRY_WEB_DEPLOY_HOOK }} | |
| run: | | |
| set -euo pipefail | |
| if [ -z "${VERCEL_DEPLOY_HOOK}" ]; then | |
| echo "VERCEL_REGISTRY_WEB_DEPLOY_HOOK is not set" | |
| exit 1 | |
| fi | |
| echo "Triggering Vercel deployment..." | |
| curl -fsS -X POST "${VERCEL_DEPLOY_HOOK}" | |
| echo "Vercel deployment triggered." |