Skip to content

Commit

Permalink
Improve publish_backend workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
shubhamsinghshubham777 committed Sep 7, 2024
1 parent 466ce3e commit a156d04
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 12 deletions.
Binary file modified .DS_Store
Binary file not shown.
15 changes: 3 additions & 12 deletions .github/workflows/publish_backend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches: [ main ]
paths:
- '.github/workflows/publish_backend.yaml'
- 'backend/**'
- 'core/**'
workflow_dispatch:
Expand All @@ -22,20 +23,10 @@ jobs:
run: |
cd backend
dart pub get
cd ../core
dart pub get
cd ..
- name: Install Globe CLI
run: dart pub global activate globe_cli

- name: Build Dart Frog project
run: |
cd backend
dart pub global run globe_cli build
- name: Deploy to Globe
run: |
cd backend
dart pub global run globe_cli deploy
env:
GLOBE_TOKEN: ${{ secrets.GLOBE_TOKEN }}
run: globe deploy --token=${{ secrets.GLOBE_TOKEN }} --project="${{ secrets.GLOBE_PROJECT_ID }}"
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
.dart_tool/
*.secrets

0 comments on commit a156d04

Please sign in to comment.