Skip to content

Conversation

@ilopX
Copy link
Collaborator

@ilopX ilopX commented Feb 5, 2022

Add bin\deploy_flutter_demos.dart script.
This script will build a web platform flutter app and push the changes to web-demos branch on github.

Deploy flutter demos

  1. Fork this repo: https://github.com/RefactoringGuru/design-patterns-dart
  2. Apply your changes.
  3. Run the script dart bin\deploy_flutter_demos.dart.
  4. You can now make a pull request on the web-demos branch.
  5. Once approved for the merge, the web app will be available at https://refactoringguru.github.io/design-patterns-dart .

Commands that this script executes:

create $tempDirectory
cd $tempDirectory
git clone -b web-demos --single-branch $frokOriginUrl .
git remote add upstream https://github.com/RefactoringGuru/design-patterns-dart.git
git fetch upstream
cd $projectDirectory
flutter build web -t bin\main.dart --web-renderer html
copyDirectory build\web\*.* $tempDirectory
cd $tempDirectory
git add .
git commit -m $lastProjectCommit
git push origin web-demos
delete $tempDirectory

@ilopX ilopX mentioned this pull request Feb 7, 2022
1 task
@neochief neochief merged commit 1843a38 into RefactoringGuru:master Feb 7, 2022
@ilopX ilopX deleted the depoly-flutter-demos-script branch February 13, 2022 15:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants