diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 25dab37e2..de164c056 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -23,8 +23,6 @@ jobs: with: flutter-version: ${{ env.FLUTTER_VERSION }} cache: true - - name: Install dependencies - run: sudo apt-get update && sudo apt-get install nodejs -y - uses: moonrepo/setup-rust@v1 - run: rustup component add rust-src --toolchain nightly-x86_64-unknown-linux-gnu - run: flutter pub get @@ -32,7 +30,7 @@ jobs: run: ./scripts/prepare-web.sh - run: rm ./assets/vodozemac/.gitignore - 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 run: tar -czf fluffychat-web.tar.gz build/web/ - name: Upload Web Build @@ -49,17 +47,12 @@ jobs: asset_path: fluffychat-web.tar.gz asset_name: fluffychat-web.tar.gz 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 run: | - mv docs public - mv repo public || true - mv build/web/ public/web - cp public/web -r public/nightly + mkdir public + mkdir public/nightly + cp -r build/web/* public/ + cp -r build/web/* public/nightly/ - name: Deploy to GitHub Pages if: startsWith(github.ref, 'refs/tags/v') uses: peaceiris/actions-gh-pages@v4 @@ -67,7 +60,7 @@ jobs: personal_token: ${{ secrets.PAGES_DEPLOY_TOKEN }} publish_dir: ./public publish_branch: gh-pages - cname: fluffychat.im + cname: app.fluffy.chat build_apk: runs-on: ubuntu-latest