Skip to content

Commit f252612

Browse files
committed
fix: update GitHub workflow
1 parent 0a93a38 commit f252612

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ jobs:
1818
with:
1919
channel: 'stable'
2020
- run: dart pub get
21-
- name: Build app with API_KEY
22-
run: dart compile exe -D POSTHOG_API_KEY=${{ secrets.POSTHOG_API_KEY }} bin/stacked.dart
21+
- name: Build app
22+
run: dart compile exe -D POSTHOG_API_KEY="${{ secrets.POSTHOG_API_KEY }}" bin/stacked.dart
2323
- name: release
2424
uses: cycjimmy/semantic-release-action@v3
2525
with:

bin/stacked.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Future<void> main(List<String> arguments) async {
4545

4646
try {
4747
final argResults = runner.parse(arguments);
48-
// await _handleFirstRun();
48+
await _handleFirstRun();
4949

5050
if (argResults[ksVersion]) {
5151
await _handleVersion();

lib/src/services/posthog_service.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ class PosthogService {
4545
'telemetry_config',
4646
compactionStrategy: (entries, deletedEntries) => deletedEntries > 50,
4747
);
48+
49+
_log.info(message: 'Initialized with Key:${_apiKey.substring(0, 2)}');
4850
}
4951

5052
Future<void> _capture({

0 commit comments

Comments
 (0)