Skip to content

Commit

Permalink
chore: Exit with 1 if auth & enable cron jobs docs (#96)
Browse files Browse the repository at this point in the history
* exit with 1 if auth & enable cron jobs docs

* fix deployment for shelf

* _

* fix script

* _

* _

* _

* _

* _

* _

* _

* _

* _

* _

* _

* _

* _

* restore cron warning

* restore doc
  • Loading branch information
codekeyz authored Jul 10, 2024
1 parent 66583f0 commit 0b65bc4
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 3 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/globe_cli_deploy_test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Test Globe CLI Deploy


on:
pull_request:
paths:
- 'packages/globe_cli/**'
branches:
- main

jobs:
deploy_dart:
name: Deploy Dart with CLI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
- uses: bluefireteam/melos-action@v3
- run: dart run "${{ github.workspace }}/packages/globe_cli/bin/globe.dart" deploy --token=${{ secrets.GLOBE_TEST_DEPLOY_TOKEN }} --project="e785cd34-0743-4c4b-a4f7-d7a7c950d2ca"
working-directory: ./examples/shelf/


deploy_flutter:
name: Deploy Flutter with CLI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
- uses: bluefireteam/melos-action@v3
- run: dart run "${{ github.workspace }}/packages/globe_cli/bin/globe.dart" deploy --token=${{ secrets.GLOBE_TEST_DEPLOY_TOKEN }} --project="1c73e6b9-6ce4-4a2f-a0a3-1f096d6bc1e5"
4 changes: 2 additions & 2 deletions docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ sidebar:
- "/infrastructure/limits"
- - Cold Starts
- "/infrastructure/cold-starts"
# - - Cron Jobs
# - "/infrastructure/cron-jobs"
- - Cron Jobs
- "/infrastructure/cron-jobs"
- - Headers
- "/infrastructure/headers"
- - Regions
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion packages/globe_cli/lib/src/command.dart
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ abstract class BaseGlobeCommand extends Command<int> {
..err('Please login to deploy a project.')
..err('Run `globe login` to login.');

exitOverride(0);
exitOverride(1);
}

// TODO(ehesp): Check for JWT expiry and refresh if needed?
Expand Down

0 comments on commit 0b65bc4

Please sign in to comment.