diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index f0f68ac5..c4a7565e 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,9 +1,9 @@ name: deploy -# Run this workflow when a push is made to the main branch +# Run this workflow when a new release is published on: - push: - branches: [ main ] + release: + types: [published] jobs: build_and_deploy: runs-on: ubuntu-latest # Use the latest version of Ubuntu @@ -32,4 +32,4 @@ jobs: uses: peaceiris/actions-gh-pages@v3 with: github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ./build/web \ No newline at end of file + publish_dir: ./build/web diff --git a/lib/shared/services/feed_injector_service.dart b/lib/shared/services/feed_injector_service.dart index 4c98ca2d..fffd8196 100644 --- a/lib/shared/services/feed_injector_service.dart +++ b/lib/shared/services/feed_injector_service.dart @@ -108,11 +108,16 @@ class FeedInjectorService { if (userRole == UserRole.guestUser) { daysThreshold = daysBetweenActionsConfig.guestDaysBetweenAccountActions; actionType = AccountActionType.linkAccount; - } else if (userRole == UserRole.standardUser) { - // Assuming standardUser is the target for upgrade prompts + } else if (userRole == UserRole.standardUser) { daysThreshold = daysBetweenActionsConfig.standardUserDaysBetweenAccountActions; - actionType = AccountActionType.upgrade; + + // todo(fulleni): once account upgrade feature is implemented, + // uncomment the action type line + // and remove teh null return line. + + // actionType = AccountActionType.upgrade; + return null; } else { // No account actions for premium users or other roles for now return null;