diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index fbc202077..40797cd14 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -12,13 +12,21 @@ jobs: - uses: actions/checkout@v4 - name: Install Flutter uses: subosito/flutter-action@v2 - - name: Set fl_chart Version run: | VERSION=$(grep "version:" pubspec.yaml | awk '{ print $2 }') echo "USING_FL_CHART_VERSION=$VERSION" >> $GITHUB_ENV - - - uses: bluefireteam/flutter-gh-pages@v8 - with: - workingDir: example - customArgs: --dart-define="USING_FL_CHART_VERSION=${{ env.USING_FL_CHART_VERSION }}" + - run: flutter config --enable-web + working-directory: example + - run: flutter build web --release --wasm --base-href=/ --dart-define="USING_FL_CHART_VERSION=${{ env.USING_FL_CHART_VERSION }}" + working-directory: example + - run: git config user.name github-actions + working-directory: example + - run: git config user.email github-actions@github.com + working-directory: example + - run: git --work-tree build/web add --all + working-directory: example + - run: git commit -m "Automatic deployment by github-actions" + working-directory: example + - run: git push origin HEAD:gh-pages --force + working-directory: example diff --git a/example/web/index.html b/example/web/index.html index 42adc297e..b094c6a0c 100644 --- a/example/web/index.html +++ b/example/web/index.html @@ -21,7 +21,7 @@ - + @@ -31,15 +31,8 @@ FL Chart App - - - - - +