generated from Tinkoff/angular-open-source-starter
-
Notifications
You must be signed in to change notification settings - Fork 35
33 lines (27 loc) · 983 Bytes
/
deploy-preview.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Deploy / preview
on: pull_request
jobs:
build_and_preview:
if:
github.event.pull_request.head.repo.full_name == github.repository && github.actor != 'dependabot[bot]' &&
github.actor != 'dependabot-preview[bot]' && !contains(github.head_ref, 'release/')
name: Firebase
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js and Cache
uses: taiga-family/ci/actions/[email protected]
- run: npm run build
- name: Debug output
run: tree dist/demo/browser -P '*.html'
- name: Deploy preview
uses: FirebaseExtended/action-hosting-deploy@v0
continue-on-error: true
with:
repoToken: ${{ secrets.GITHUB_TOKEN }}
firebaseServiceAccount: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_MASKITO }}
projectId: maskito
expires: 1d
concurrency:
group: firebase-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true