Update GitHub actions
This commit is contained in:
parent
96b19b4f07
commit
134d39892a
|
|
@ -24,6 +24,10 @@ jobs:
|
||||||
with:
|
with:
|
||||||
channel: 'stable' # TODO change to beta/stable
|
channel: 'stable' # TODO change to beta/stable
|
||||||
#flutter-version: '1.26.0-17.2.pre'
|
#flutter-version: '1.26.0-17.2.pre'
|
||||||
|
- name: Install Sentry
|
||||||
|
run: |
|
||||||
|
curl -sL https://sentry.io/get-cli/ | bash
|
||||||
|
export SENTRY_RELEASE=$(sentry-cli releases propose-version)
|
||||||
- name: Setup Flutter
|
- name: Setup Flutter
|
||||||
run: flutter doctor -v
|
run: flutter doctor -v
|
||||||
- run: flutter pub get
|
- run: flutter pub get
|
||||||
|
|
@ -38,7 +42,7 @@ jobs:
|
||||||
- run: flutter upgrade
|
- run: flutter upgrade
|
||||||
- run: flutter config --enable-web
|
- run: flutter config --enable-web
|
||||||
- name: Build App
|
- name: Build App
|
||||||
run: flutter build web --web-renderer html --release
|
run: flutter build web --web-renderer html --release --dart-define=SENTRY_RELEASE=$SENTRY_RELEASE --source-maps
|
||||||
- run: |
|
- run: |
|
||||||
sed -i '/index.html/d' build/web/flutter_service_worker.js
|
sed -i '/index.html/d' build/web/flutter_service_worker.js
|
||||||
|
|
||||||
|
|
@ -54,10 +58,8 @@ jobs:
|
||||||
git add .
|
git add .
|
||||||
git commit -m 'New admin portal build'
|
git commit -m 'New admin portal build'
|
||||||
git push
|
git push
|
||||||
|
- name: Create Sentry release
|
||||||
curl -sL https://sentry.io/get-cli/ | bash
|
run: |
|
||||||
|
|
||||||
export SENTRY_RELEASE=$(sentry-cli releases propose-version)
|
|
||||||
sentry-cli --auth-token ${{secrets.sentry_auth_token}} --url ${{secrets.sentry_url}} releases --org ${{secrets.sentry_org}} new $SENTRY_RELEASE --project ${{secrets.sentry_project}}
|
sentry-cli --auth-token ${{secrets.sentry_auth_token}} --url ${{secrets.sentry_url}} releases --org ${{secrets.sentry_org}} new $SENTRY_RELEASE --project ${{secrets.sentry_project}}
|
||||||
sentry-cli --auth-token ${{secrets.sentry_auth_token}} --url ${{secrets.sentry_url}} releases --org ${{secrets.sentry_org}} set-commits --auto $SENTRY_RELEASE
|
sentry-cli --auth-token ${{secrets.sentry_auth_token}} --url ${{secrets.sentry_url}} releases --org ${{secrets.sentry_org}} set-commits --auto $SENTRY_RELEASE
|
||||||
sentry-cli --auth-token ${{secrets.sentry_auth_token}} --url ${{secrets.sentry_url}} releases --org ${{secrets.sentry_org}} files $SENTRY_RELEASE upload-sourcemaps ../build/web/main.dart.js.map
|
sentry-cli --auth-token ${{secrets.sentry_auth_token}} --url ${{secrets.sentry_url}} releases --org ${{secrets.sentry_org}} files $SENTRY_RELEASE upload-sourcemaps ../build/web/main.dart.js.map
|
||||||
|
|
|
||||||
|
|
@ -97,7 +97,9 @@ void main({bool isTesting = false}) async {
|
||||||
await SentryFlutter.init(
|
await SentryFlutter.init(
|
||||||
(options) {
|
(options) {
|
||||||
options.dsn = Config.SENTRY_DNS;
|
options.dsn = Config.SENTRY_DNS;
|
||||||
options.release = kClientVersion;
|
options.release =
|
||||||
|
String.fromEnvironment('SENTRY_RELEASE', defaultValue: 'Unknown');
|
||||||
|
options.dist = kClientVersion;
|
||||||
options.beforeSend = (SentryEvent event, {dynamic hint}) {
|
options.beforeSend = (SentryEvent event, {dynamic hint}) {
|
||||||
final state = store.state;
|
final state = store.state;
|
||||||
final account = state.account;
|
final account = state.account;
|
||||||
|
|
|
||||||
|
|
@ -928,7 +928,7 @@ void _showAbout(BuildContext context) async {
|
||||||
child: apppIcon,
|
child: apppIcon,
|
||||||
),
|
),
|
||||||
title: Text(
|
title: Text(
|
||||||
'Invoice Ninja v5',
|
'Invoice Ninja',
|
||||||
style: Theme.of(context).textTheme.headline6,
|
style: Theme.of(context).textTheme.headline6,
|
||||||
),
|
),
|
||||||
subtitle: Text(state.appVersion),
|
subtitle: Text(state.appVersion),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue