Skip to content

Commit

Permalink
ci: deploy workflow replace w9jds/firebase-action with firebase-tools
Browse files Browse the repository at this point in the history
  • Loading branch information
sjdonado committed May 2, 2024
1 parent 3f140a8 commit 86d17e3
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 12 deletions.
31 changes: 19 additions & 12 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,23 @@ jobs:
build:
name: Build
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v1
- name: Install dependencies
run: bun install
- name: Build
run: bun run build
- name: Deploy to Firebase
uses: w9jds/firebase-action@master
with:
args: deploy
env:
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v1

- name: Install dependencies
run: bun install

- name: Build
run: bun run build

- name: Install Firebase CLI
run: bun install -g firebase-tools

- name: Deploy to Firebase
env:
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
run: |
firebase use --token $FIREBASE_TOKEN
firebase deploy --only hosting --non-interactive --token $FIREBASE_TOKEN
Binary file removed bun.lockb
Binary file not shown.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
"typescript": "^5.4.5"
},
"devDependencies": {
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
"@typescript-eslint/eslint-plugin": "^7.8.0",
"@typescript-eslint/parser": "^7.8.0",
"ajv-cli": "^5.0.0",
Expand Down

0 comments on commit 86d17e3

Please sign in to comment.