/
githubmirror
/
tldraw
Обзор
Документация
Войти
/
githubmirror
/
tldraw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
.github/workflows/deploy-analytics.yml
55 строк
2 KB
Steve Ruiz
chore(ci): update GitHub Actions to latest versions (#7904)
13 фев 2026, 13:34
Не верифицирован
13 фев 2026, 13:34
68b7252
Код
Авторство
О чём код?
name: Deploy analytics worker permissions: contents: read deployments: write on: pull_request: paths: - 'apps/analytics-worker/**' - 'internal/scripts/deploy-analytics.ts' - 'internal/scripts/lib/deploy.ts' - '.github/workflows/deploy-analytics.yml' - '.github/actions/setup/**' push: branches: - main - production env: CI: 1 PRINT_GITHUB_ANNOTATIONS: 1 TLDRAW_ENV: ${{ (github.ref == 'refs/heads/production' && 'production') || (github.ref == 'refs/heads/main' && 'staging') || 'preview' }} defaults: run: shell: bash jobs: deploy: name: Deploy analytics worker to ${{ (github.ref == 'refs/heads/production' && 'production') || (github.ref == 'refs/heads/main' && 'staging') || 'preview' }} timeout-minutes: 10 runs-on: ubuntu-latest environment: ${{ github.ref == 'refs/heads/production' && 'deploy-production' || 'deploy-staging' }} concurrency: analytics-worker-${{ github.ref == 'refs/heads/production' && 'deploy-production' || github.ref }} steps: - name: Check out code uses: actions/checkout@v6 with: submodules: true - uses: ./.github/actions/setup - name: Build types run: yarn build-types - name: Deploy run: yarn tsx internal/scripts/deploy-analytics.ts env: RELEASE_COMMIT_HASH: ${{ github.sha }} GH_TOKEN: ${{ github.token }} CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }} CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} DISCORD_DEPLOY_WEBHOOK_URL: ${{ secrets.DISCORD_DEPLOY_WEBHOOK_URL }}