Skip to content

Create web_build.yml (#20) #1

Create web_build.yml (#20)

Create web_build.yml (#20) #1

Workflow file for this run

name: Flutter Web
on:
push:
branches:
- main
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 manasmalla.dev@gmail.com
git config --global user.name "Manas Malla"
git status
git remote add origin https://${{secrets.commit_secret}}@github.com/GDGVizag/GDGVizag.github.io.git
git checkout -b main
git add --all
git commit -m ${{ github.event.head_commit.message }}
git push origin main -f