Skip to content

Add github action to deploy #80

Add github action to deploy

Add github action to deploy #80

Workflow file for this run

name: Flutter Web
on:
push:
branches:
- master
jobs:
build:
name: Build Web
env:
my_secret: ${{secrets.commit_secret}}
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
channel: 'stable'
flutter-version: '3.16.8'
- name: Enable web
run: flutter config --enable-web
- name: Get dependencies
run: flutter pub get
- name: Build web
run: flutter build web --release
- name: Deploy to Github Pages
run: |
cd build/web
git init
git config --global user.email praslnx8@gmail.com
git config --global user.name praslnx8
git status
git remote add origin https://${{secrets.commit_secret}}@github.com/wealth-wave/wealth_wave.git
git checkout -b gh-pages
git add --all
git commit -m "update"
git push origin gh-pages -f