From c87f5eeec1432477d6ee443d208f15473112eb4f Mon Sep 17 00:00:00 2001 From: swimmingkiim Date: Thu, 19 Oct 2023 09:59:15 +0900 Subject: [PATCH] Add gh-pages deploy script via Github Actions --- .github/workflows/deploy-ui-demo-gh-pages.yml | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/deploy-ui-demo-gh-pages.yml 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