-
-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3161fe6
commit d69c3ed
Showing
1 changed file
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Flutter Web | ||
on: | ||
push: | ||
branches: | ||
- demo_v2 | ||
jobs: | ||
build: | ||
name: Build Web | ||
env: | ||
my_secret: ${{secrets.commit_secret}} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: subosito/flutter-action@v1 | ||
with: | ||
channel: 'dev' | ||
- run: flutter config --enable-web | ||
- run: flutter pub get | ||
- run: flutter build web --release | ||
- run: | | ||
cd build/web | ||
git init | ||
# type configurations: your user.email and user.name followed lines | ||
# git config --global user.email your_email | ||
# git config --global user.name your_name | ||
git config --global user.email shivanshtalwar0@gmail.com | ||
git config --global user.name shivanshtalwar0 | ||
git status | ||
# change this remote url for examle your remote url is https://github.com/onatcipli/flutter_web.git then the following: | ||
git remote add origin https://${{secrets.commit_secret}}@github.com/flutterjanus/flutter_janus_client.git | ||
git checkout -b gh-pages | ||
git add --all | ||
git commit -m "update" | ||
git push origin gh-pages -f |