Skip to content

Commit

Permalink
ci: 🤖 deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
yjaaidi committed Jun 6, 2024
1 parent a1e9cb2 commit b45ce96
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Test
name: Test & Deploy

on:
push:
Expand All @@ -11,8 +11,8 @@ permissions:
contents: read

jobs:
test:
name: ✅ Test
test-and-deploy:
name: 🚀 Test & Deploy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -33,3 +33,12 @@ jobs:
- run: bunx nx-cloud record -- nx format:check
- run: bunx nx affected -t build lint test
- run: bunx nx-cloud stop-all-agents
- name: Set up service account
if: github.ref == 'refs/heads/main'
env:
FIREBASE_SERVICE_ACCOUNT_MARMICODE_COOKBOOK: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_MARMICODE_COOKBOOK }}
run: echo $FIREBASE_SERVICE_ACCOUNT_MARMICODE_COOKBOOK > /firebase-sa.json
- run: nx affected -t deploy
if: github.ref == 'refs/heads/main'
env:
GOOGLE_APPLICATION_CREDENTIALS: /firebase-sa.json

0 comments on commit b45ce96

Please sign in to comment.