mirror of
https://github.com/krille-chan/fluffychat
synced 2024-09-10 09:45:14 +00:00
ci: Fix web release job
This commit is contained in:
parent
dad8576a23
commit
ff245e3eba
1 changed files with 2 additions and 1 deletions
3
.github/workflows/release.yaml
vendored
3
.github/workflows/release.yaml
vendored
|
@ -25,7 +25,7 @@ jobs:
|
||||||
- name: Prepare web
|
- name: Prepare web
|
||||||
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
|
run: flutter build web --dart-define=FLUTTER_WEB_CANVASKIT_URL=canvaskit/ --release --source-maps --base-href "/web/"
|
||||||
- name: Create archive
|
- name: Create archive
|
||||||
run: tar -czf fluffychat-web.tar.gz build/web/
|
run: tar -czf fluffychat-web.tar.gz build/web/
|
||||||
- name: Upload Web Build
|
- name: Upload Web Build
|
||||||
|
@ -50,6 +50,7 @@ jobs:
|
||||||
mv build/web/ public/web
|
mv build/web/ public/web
|
||||||
cp public/web -r public/nightly
|
cp public/web -r public/nightly
|
||||||
- name: Deploy to GitHub Pages
|
- name: Deploy to GitHub Pages
|
||||||
|
if: startsWith(github.ref, 'refs/tags/v')
|
||||||
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 }}
|
||||||
|
|
Loading…
Reference in a new issue