Skip to content

Commit

Permalink
Create main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Arenukvern authored Nov 1, 2020
1 parent 048e79b commit c083c22
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Flutter Web
on:
push:
branches:
- master
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 ${{secrets.USER_EMAIL}}
git config --global user.name ${{secrets.USER_NAME}}
git status
# change this remote url for examle your remote url is then the following:
git remote add origin https://${{secrets.COMMIT_SECRET}}@github.com/xsoulspace/word_by_word_game.git
git checkout -b gh-pages
git add --all
git commit -m "update"
git push origin gh-pages -f

0 comments on commit c083c22

Please sign in to comment.