From e5014f577f6778307755b582b811a432ff7bb168 Mon Sep 17 00:00:00 2001 From: Koji Wakamiya Date: Mon, 22 Jul 2024 18:46:46 +0900 Subject: [PATCH 1/2] chore: Add deploy demo workflow --- .github/workflows/deploy.yaml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/deploy.yaml diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml new file mode 100644 index 0000000..835bfcf --- /dev/null +++ b/.github/workflows/deploy.yaml @@ -0,0 +1,27 @@ +name: Deploy preview + +on: + push: + branches: + - main + workflow_dispatch: + +jobs: + deploy: + runs-on: ubuntu-latest + timeout-minutes: 10 + + steps: + - uses: actions/checkout@v4 + - uses: subosito/flutter-action@v2 + with: + channel: 'stable' + cache: true + - run: flutter pub get + working-directory: example + - run: flutter build web --base-href "/paging_view/" --wasm + working-directory: example + - uses: peaceiris/actions-gh-pages@v4 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./example/build/web From ff24972a8c3a6f6307594d7f599288be4079948e Mon Sep 17 00:00:00 2001 From: Koji Wakamiya Date: Mon, 22 Jul 2024 19:13:16 +0900 Subject: [PATCH 2/2] doc: Update README.md --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 3241506..5939910 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,10 @@ Like Android Jetpack's Paging library 3, manages data and displays paged lists. +## Live preview + +https://koji-1009.github.io/paging_view/ + ## How to use 1. Create a class that is extended `DataSource`.