build: Deploy web on app.fluffy.chat
This commit is contained in:
parent
df6cb5ca1c
commit
15a7053c58
1 changed files with 6 additions and 13 deletions
19
.github/workflows/release.yaml
vendored
19
.github/workflows/release.yaml
vendored
|
|
@ -23,8 +23,6 @@ jobs:
|
||||||
with:
|
with:
|
||||||
flutter-version: ${{ env.FLUTTER_VERSION }}
|
flutter-version: ${{ env.FLUTTER_VERSION }}
|
||||||
cache: true
|
cache: true
|
||||||
- name: Install dependencies
|
|
||||||
run: sudo apt-get update && sudo apt-get install nodejs -y
|
|
||||||
- uses: moonrepo/setup-rust@v1
|
- uses: moonrepo/setup-rust@v1
|
||||||
- run: rustup component add rust-src --toolchain nightly-x86_64-unknown-linux-gnu
|
- run: rustup component add rust-src --toolchain nightly-x86_64-unknown-linux-gnu
|
||||||
- run: flutter pub get
|
- run: flutter pub get
|
||||||
|
|
@ -32,7 +30,7 @@ jobs:
|
||||||
run: ./scripts/prepare-web.sh
|
run: ./scripts/prepare-web.sh
|
||||||
- run: rm ./assets/vodozemac/.gitignore
|
- run: rm ./assets/vodozemac/.gitignore
|
||||||
- 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
|
||||||
- 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
|
||||||
|
|
@ -49,17 +47,12 @@ jobs:
|
||||||
asset_path: fluffychat-web.tar.gz
|
asset_path: fluffychat-web.tar.gz
|
||||||
asset_name: fluffychat-web.tar.gz
|
asset_name: fluffychat-web.tar.gz
|
||||||
asset_content_type: application/gzip
|
asset_content_type: application/gzip
|
||||||
- name: Install and build tailwindcss
|
|
||||||
working-directory: docs
|
|
||||||
run: |
|
|
||||||
npm install tailwindcss @tailwindcss/cli
|
|
||||||
npx tailwindcss -o ./tailwind.css
|
|
||||||
- name: Build Website
|
- name: Build Website
|
||||||
run: |
|
run: |
|
||||||
mv docs public
|
mkdir public
|
||||||
mv repo public || true
|
mkdir public/nightly
|
||||||
mv build/web/ public/web
|
cp -r build/web/* public/
|
||||||
cp public/web -r public/nightly
|
cp -r build/web/* public/nightly/
|
||||||
- name: Deploy to GitHub Pages
|
- name: Deploy to GitHub Pages
|
||||||
if: startsWith(github.ref, 'refs/tags/v')
|
if: startsWith(github.ref, 'refs/tags/v')
|
||||||
uses: peaceiris/actions-gh-pages@v4
|
uses: peaceiris/actions-gh-pages@v4
|
||||||
|
|
@ -67,7 +60,7 @@ jobs:
|
||||||
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
|
cname: app.fluffy.chat
|
||||||
|
|
||||||
build_apk:
|
build_apk:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue