diff --git a/.github/workflows/deploy-ui-demo-gh-pages.yml b/.github/workflows/deploy-ui-demo-gh-pages.yml new file mode 100644 index 0000000..c142ca0 --- /dev/null +++ b/.github/workflows/deploy-ui-demo-gh-pages.yml @@ -0,0 +1,23 @@ +name: Deploy UI demo gh-pages + +on: + push: + branches: [main] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - uses: subosito/flutter-action@v1 + - run: flutter config --enable-web + shell: bash + working-directory: . + - run: flutter build web --release --base-href /messenger/ + shell: bash + working-directory: ./packages/messenger + - uses: peaceiris/actions-gh-pages@v3 + with: + deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }} + publish_dir: ./packages/messenger/build/web