diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d41d9c1..7fd16fc 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -260,10 +260,16 @@ jobs: echo "APP_NAME=$APP_NAME" >> $GITHUB_ENV echo "VERSION_NAME=$VERSION_NAME" >> $GITHUB_ENV - flutter build web + flutter build web --base-href /${{ github.event.repository.name }}/ --release --build-number=$GITHUB_RUN_NUMBER - name: Archive web artifact uses: actions/upload-artifact@v4.0.0 with: name: ${{ env.APP_NAME }}-Web-${{ env.VERSION_NAME }} path: build/web + + - name: Deploy to GitHub Pages + uses: peaceiris/actions-gh-pages@v4 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} # Automatically provided by GitHub Actions + publish_dir: ./build/web