-
Notifications
You must be signed in to change notification settings - Fork 2
46 lines (38 loc) · 1.03 KB
/
Copy pathfirebase-hosting-deploy.yml
File metadata and controls
46 lines (38 loc) · 1.03 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
---
name: Deploy to Firebase Hosting
on:
push:
branches:
- main
permissions:
contents: write
issues: write
pull-requests: write
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Check out the code
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Install dependencies
run: yarn
- name: Build the project
run: yarn generate
- name: Deploy to Firebase Hosting
uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: "${{ secrets.GITHUB_TOKEN }}"
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT }}"
channelId: live
projectId: kai-master-app
- name: Semantic Release
uses: cycjimmy/semantic-release-action@v5
with:
extra_plugins: |
@semantic-release/changelog
@semantic-release/git
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
SEMANTIC_RELEASE_PACKAGE: kai-master-app