/
githubmirror
/
components
Обзор
Документация
Войти
/
githubmirror
/
components
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
.github/workflows/preview-deploy-dev-app.yml
44 строки
2 KB
Angular Robot
build: update cross-repo angular dependencies (#33620)
08 авг 2026, 07:28
Не верифицирован
08 авг 2026, 07:28
d7f6c84
Код
Авторство
О чём код?
# This workflow runs whenever the dev-app build workflow has completed. Deployment happens # as part of a dedicated second workflow to avoid security issues where the building would # otherwise occur in an authorized context where secrets could be leaked. # # More details can be found here: # https://securitylab.github.com/research/github-actions-preventing-pwn-requests/. name: Deploying dev-app to Firebase previews on: # zizmor: ignore[dangerous-triggers] - {Trigger is safe as workflow does not checkout untrusted code} workflow_run: workflows: ['Build dev-app for deployment'] types: [completed] permissions: # Needed in order to be able to comment on the pull request. pull-requests: write env: PREVIEW_PROJECT: ng-dev-previews PREVIEW_SITE: ng-dev-previews-comp jobs: deploy-dev-app: runs-on: ubuntu-latest if: ${{ github.event.workflow_run.conclusion == 'success' }} steps: - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 - name: Configure Firebase deploy target run: | # We can use `npx` as the Firebase deploy actions uses it too. npx -y firebase-tools@latest target:clear --project ${{env.PREVIEW_PROJECT}} hosting dev-app npx -y firebase-tools@latest target:apply --project ${{env.PREVIEW_PROJECT}} hosting dev-app ${{env.PREVIEW_SITE}} - uses: angular/dev-infra/github-actions/previews/upload-artifacts-to-firebase@04230133d395dfb032d782b8e63b4fcbbd406aa5 # main with: github-token: '${{secrets.GITHUB_TOKEN}}' workflow-artifact-name: 'dev-app' firebase-config-dir: './' firebase-public-dir: './dist/dev-app-web-pkg' firebase-project-id: '${{env.PREVIEW_PROJECT}}' firebase-service-key: '${{secrets.FIREBASE_PREVIEW_SERVICE_TOKEN}}'