ci: Fix nightly builds for web

This commit is contained in:
Krille 2023-12-11 13:59:13 +01:00
parent 96ca7f41cd
commit 3f7df35a13
No known key found for this signature in database
2 changed files with 3 additions and 2 deletions

View file

@ -24,11 +24,12 @@ jobs:
run: ./scripts/prepare-web.sh
- name: Build Release Web
run: flutter build web --dart-define=FLUTTER_WEB_CANVASKIT_URL=canvaskit/ --release --source-maps --base-href "/web/"
- run: mv build/web/ public
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
personal_token: ${{ secrets.PAGES_DEPLOY_TOKEN }}
publish_dir: ./build/web
publish_dir: ./public
publish_branch: gh-pages
destination_dir: nightly

View file

@ -49,13 +49,13 @@ jobs:
mv repo public || true
mv build/web/ public/web
cp public/web -r public/nightly
echo "fluffychat.im" > ./public/CNAME
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
personal_token: ${{ secrets.PAGES_DEPLOY_TOKEN }}
publish_dir: ./public
publish_branch: gh-pages
cname: fluffychat.im
build_apk:
runs-on: ubuntu-latest