Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use sz build web in web-app preview job and add preview stage to it. #1290

Merged
merged 29 commits into from
Feb 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
6fe7cb2
Add "preview" stage to build/deploy web app command.
Jonas-Sander Feb 6, 2024
1ba26d2
Update "AlphaVersionBanner" to "DeploymentStageBanner".
Jonas-Sander Feb 6, 2024
43add16
kDevelopmentStage == ""
Jonas-Sander Feb 6, 2024
61f4307
Add --expires option to sz deploy web and use sz deploy in actions.
Jonas-Sander Feb 6, 2024
6339be0
.
Jonas-Sander Feb 6, 2024
cec4074
format
Jonas-Sander Feb 6, 2024
4d70ea7
Comment out test.
Jonas-Sander Feb 6, 2024
87bd7d4
sz deploy web
Jonas-Sander Feb 6, 2024
832c3bd
Don't use `pull_request_target` temorarily
Jonas-Sander Feb 6, 2024
0b8df28
comment out pull_request_target
Jonas-Sander Feb 6, 2024
46389b9
Add CI_CD_DART_SCRIPTS_PACKAGE_PATH environment variable
Jonas-Sander Feb 6, 2024
b8cd90e
sz deploy web-app
Jonas-Sander Feb 6, 2024
051c175
Format
Jonas-Sander Feb 6, 2024
ff4fd7f
Add "Install Firebase CLI"
Jonas-Sander Feb 6, 2024
39be923
Only use sz build web
Jonas-Sander Feb 6, 2024
c8e4cf9
Add prints
Jonas-Sander Feb 6, 2024
f46c9de
_uppercasedStage == 'STABLE'
Jonas-Sander Feb 6, 2024
63b2dd1
Revert `deploy web-app` changes
Jonas-Sander Feb 7, 2024
dbce1ce
Use "kDevelopmentStageOrNullOverridable"
Jonas-Sander Feb 7, 2024
4cac9eb
Update tests
Jonas-Sander Feb 7, 2024
e9a4d43
Format
Jonas-Sander Feb 7, 2024
166e515
Fix comment
Jonas-Sander Feb 7, 2024
b66ea84
Use only kDevelopmentStageOrNull
Jonas-Sander Feb 7, 2024
799a208
Fix comment
Jonas-Sander Feb 7, 2024
339b2f0
Revert `AlphaVersionBanner` changes.
Jonas-Sander Feb 7, 2024
13d22b3
Revert sharezone.dart change.
Jonas-Sander Feb 7, 2024
e1fc94b
Revert constants.dart
Jonas-Sander Feb 7, 2024
5ef47f9
Use pull_request_target again.
Jonas-Sander Feb 7, 2024
0eb2c93
Fix step name
Jonas-Sander Feb 7, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions .github/workflows/unsafe_app_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -152,13 +152,18 @@ jobs:
flutter-version: ${{ steps.fvm-config-action.outputs.FLUTTER_VERSION }}
channel: ${{ steps.fvm-config-action.outputs.FLUTTER_CHANNEL }}

- name: Activate sz_repo_cli package
run: flutter pub global activate --source path "$CI_CD_DART_SCRIPTS_PACKAGE_PATH"

# So we can just use "sz COMMAND" instead of "dart ../path/to/script.dart ..."
- run: echo $(realpath ./bin) >> $GITHUB_PATH

- name: Build web app
working-directory: app
run: |
flutter build web \
--release \
--web-renderer canvaskit \
--target=lib/main_dev.dart
sz build web \
--flavor dev \
--stage preview

- name: Deploy to Firebase Hosting (sharezone-debug)
uses: FirebaseExtended/action-hosting-deploy@120e124148ab7016bec2374e5050f15051255ba2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ final _webStages = [
'stable',
'beta',
'alpha',
'preview',
];

/// The different flavors of the Web app.
Expand Down
Loading