Skip to content

Commit

Permalink
Merge pull request #20 from Dev-FE-1/feat/hosting-#19
Browse files Browse the repository at this point in the history
#19 자동배포 및 수동배포 추가
  • Loading branch information
seoyoonyi authored Aug 26, 2024
2 parents e7c9270 + c81e804 commit 717cbd2
Show file tree
Hide file tree
Showing 6 changed files with 65 additions and 19 deletions.
2 changes: 2 additions & 0 deletions .firebase/hosting.ZGlzdA.cache
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
index.html,1724507195246,a47cb9c7a0708b3f6d845c11b83664d12b7a4fb2ed3bbab1b7b60a8548fc0456
assets/index-D2Jb0Aqq.js,1724507195246,88fe3aa34a564c1f5ab904938b8e78562ad9278c9ea0ec1e219a6213436f8c03
5 changes: 5 additions & 0 deletions .firebaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"projects": {
"default": "np-no-problem"
}
}
22 changes: 22 additions & 0 deletions .github/workflows/click_cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Firebase Hosting by Click

on:
workflow_dispatch:

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup node.js 20.x
uses: actions/setup-node@v3
with:
node-version: 20
cache: 'npm'
- name: Install dependencies
run: npm ci && npm run build
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT }}'
projectId: np-no-problem
channelId: live
24 changes: 24 additions & 0 deletions .github/workflows/pr_auto_cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Firebase Hosting

on:
pull_request:
branches:
- main

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup node.js 20.x
uses: actions/setup-node@v3
with:
node-version: 20
cache: 'npm'
- name: Install dependencies
run: npm ci && npm run build
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT }}'
projectId: np-no-problem
channelId: live
19 changes: 0 additions & 19 deletions .github/workflows/test.yml

This file was deleted.

12 changes: 12 additions & 0 deletions firebase.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"hosting": {
"public": "dist",
"ignore": ["firebase.json", "**/.*", "**/node_modules/**"],
"rewrites": [
{
"source": "**",
"destination": "/index.html"
}
]
}
}

0 comments on commit 717cbd2

Please sign in to comment.