@@ -22,35 +22,11 @@ jobs:
22
22
if : ${{ github.event.workflow_run.conclusion == 'success' }}
23
23
steps :
24
24
- uses : actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # renovate: tag=v2.0.0
25
- - uses : ./.github/actions/yarn-install
26
-
27
- - name : ' Download artifact from build job'
28
- run : |
29
- ./scripts/github/fetch-workflow-artifact.mjs ${{secrets.GITHUB_TOKEN}} \
30
- ${{github.event.workflow_run.id}} devapp > devapp.zip
31
-
32
- - name : Extracting workflow artifact into Firebase public directory.
33
- run : |
34
- mkdir -p dist/dev-app-web-pkg
35
- unzip devapp.zip -d dist/dev-app-web-pkg
36
-
37
- - name : Extracting pull request from extracted workflow artifact.
38
- id : pr_info
39
- run : |
40
- echo "::set-output name=number::$(cat ./dist/dev-app-web-pkg/pr_number)"
41
- echo "::set-output name=sha::$(cat ./dist/dev-app-web-pkg/pr_sha)"
42
-
43
- - uses : FirebaseExtended/action-hosting-deploy@276388dd6c2cde23455b30293105cc866c22282d # renovate: tag=v0.0.0
44
- id : deploy
45
- with :
46
- repoToken : ' ${{secrets.GITHUB_TOKEN}}'
47
- firebaseServiceAccount : ' ${{secrets.FIREBASE_PREVIEW_SERVICE_TOKEN}}'
48
- expires : 20d
49
- projectId : ng-comp-dev
50
- channelId : pr-${{steps.pr_info.outputs.number}}-${{steps.pr_info.outputs.sha}}
51
-
52
- - uses : marocchino/sticky-pull-request-comment@39c5b5dc7717447d0cba270cd115037d32d28443 # renovate: tag=v2.0.0
25
+ - uses : angular/dev-infra/github-actions/deploy-previews/upload-artifacts-to-firebase@eba7bac8f0c7afd20cf63d48de1942d06efd0972
53
26
with :
54
- message : |
55
- Deployed dev-app to: ${{ steps.deploy.outputs.details_url }}
56
- number : ${{ steps.pr_info.outputs.number }}
27
+ github-token : ' ${{secrets.GITHUB_TOKEN}}'
28
+ workflow-artifact-name : ' dev-app'
29
+ firebase-config-dir : ' ./'
30
+ firebase-public-dir : ' ./dist/dev-app-web-pkg'
31
+ firebase-project-id : ' ng-comp-dev'
32
+ firebase-service-key : ' ${{secrets.FIREBASE_PREVIEW_SERVICE_TOKEN}}'
0 commit comments