Skip to content

Commit

Permalink
Update firebase_hosting.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
NOGUEN authored Nov 16, 2024
1 parent 8d0779e commit 6215eab
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/firebase_hosting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,30 @@ jobs:
runs-on: ubuntu-latest

steps:
# 1. Checkout the repository
- name: Checkout Repository
uses: actions/checkout@v3

# 2. Setup Node.js environment
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '20'
node-version: '20' # 필요한 Node.js 버전으로 조정

# 3. Install Firebase CLI globally
- name: Install Firebase CLI
run: npm install -g firebase-tools

# 4. Install project dependencies
- name: Install Dependencies
run: npm install

# 5. Build the project
- name: Build Project
run: npm run build

# 6. Deploy to Firebase Hosting
- name: Deploy to Firebase Hosting
run: npx firebase deploy --only hosting --project hiarchomepage
run: firebase deploy --only hosting --project hiarchomepage
env:
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}

0 comments on commit 6215eab

Please sign in to comment.