From d69c3ed1a8710899b4d5a03e979f0c910f319eb9 Mon Sep 17 00:00:00 2001 From: shivanshtalwar Date: Sat, 21 Oct 2023 04:10:43 +0300 Subject: [PATCH] test --- .github/workflows/main.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 00000000..3f74553c --- /dev/null +++ b/.github/workflows/main.yml @@ -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 \ No newline at end of file