ci: Fix nightly builds for web
This commit is contained in:
parent
96ca7f41cd
commit
3f7df35a13
2 changed files with 3 additions and 2 deletions
3
.github/workflows/main_deploy.yaml
vendored
3
.github/workflows/main_deploy.yaml
vendored
|
|
@ -24,11 +24,12 @@ jobs:
|
||||||
run: ./scripts/prepare-web.sh
|
run: ./scripts/prepare-web.sh
|
||||||
- name: Build Release Web
|
- name: Build Release Web
|
||||||
run: flutter build web --dart-define=FLUTTER_WEB_CANVASKIT_URL=canvaskit/ --release --source-maps --base-href "/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
|
- name: Deploy to GitHub Pages
|
||||||
uses: peaceiris/actions-gh-pages@v3
|
uses: peaceiris/actions-gh-pages@v3
|
||||||
with:
|
with:
|
||||||
personal_token: ${{ secrets.PAGES_DEPLOY_TOKEN }}
|
personal_token: ${{ secrets.PAGES_DEPLOY_TOKEN }}
|
||||||
publish_dir: ./build/web
|
publish_dir: ./public
|
||||||
publish_branch: gh-pages
|
publish_branch: gh-pages
|
||||||
destination_dir: nightly
|
destination_dir: nightly
|
||||||
|
|
||||||
|
|
|
||||||
2
.github/workflows/release.yaml
vendored
2
.github/workflows/release.yaml
vendored
|
|
@ -49,13 +49,13 @@ jobs:
|
||||||
mv repo public || true
|
mv repo public || true
|
||||||
mv build/web/ public/web
|
mv build/web/ public/web
|
||||||
cp public/web -r public/nightly
|
cp public/web -r public/nightly
|
||||||
echo "fluffychat.im" > ./public/CNAME
|
|
||||||
- name: Deploy to GitHub Pages
|
- name: Deploy to GitHub Pages
|
||||||
uses: peaceiris/actions-gh-pages@v3
|
uses: peaceiris/actions-gh-pages@v3
|
||||||
with:
|
with:
|
||||||
personal_token: ${{ secrets.PAGES_DEPLOY_TOKEN }}
|
personal_token: ${{ secrets.PAGES_DEPLOY_TOKEN }}
|
||||||
publish_dir: ./public
|
publish_dir: ./public
|
||||||
publish_branch: gh-pages
|
publish_branch: gh-pages
|
||||||
|
cname: fluffychat.im
|
||||||
|
|
||||||
build_apk:
|
build_apk:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue