diff --git a/.github/workflows/tauri-build-debug.yml b/.github/workflows/app-build-debug.yml similarity index 97% rename from .github/workflows/tauri-build-debug.yml rename to .github/workflows/app-build-debug.yml index ddce7ffc..e1dca3d9 100644 --- a/.github/workflows/tauri-build-debug.yml +++ b/.github/workflows/app-build-debug.yml @@ -1,12 +1,13 @@ -name: 'tauri-build-debug' +name: 'app-build-debug' on: - pull_request: push: branches: - - main - staging - - main + paths: + - 'apps/app/**' + - '.github/workflows/tauri-build-debug.yml' + pull_request: paths: - 'apps/app/**' - '.github/workflows/tauri-build-debug.yml' diff --git a/.github/workflows/tauri-build-release.yml b/.github/workflows/app-build-release.yml similarity index 97% rename from .github/workflows/tauri-build-release.yml rename to .github/workflows/app-build-release.yml index b79f7ff9..d0478885 100644 --- a/.github/workflows/tauri-build-release.yml +++ b/.github/workflows/app-build-release.yml @@ -1,11 +1,10 @@ -name: 'tauri-build-release' +name: 'app-build-release' on: pull_request: push: branches: - main - - staging paths: - 'apps/app/**' - '.github/workflows/tauri-build-release.yml' @@ -147,7 +146,7 @@ jobs: tagName: cherit-v__VERSION__ # the action automatically replaces \_\_VERSION\_\_ with the app version. releaseName: 'Cherit v__VERSION__' releaseAssetNamePattern: '[name]-[platform]-[arch][ext]' - releaseBody: 'See the assets to download this version and install.' + releaseBody: 'Download from Website : [Download](https://keshav.is-a.dev/Cherit/download/)' releaseDraft: true prerelease: false args: ${{ matrix.args }} diff --git a/.github/workflows/site-check.yml b/.github/workflows/site-check.yml new file mode 100644 index 00000000..373b0898 --- /dev/null +++ b/.github/workflows/site-check.yml @@ -0,0 +1,34 @@ +name: 'site-build-check' + +on: + pull_request: + paths: + - 'apps/site/**' + - '.github/workflows/site-check.yml' + push: + branches: + - staging + paths: + - 'apps/site/**' + - '.github/workflows/site-check.yml' + workflow_dispatch: + +jobs: + check-site: + runs-on: ubuntu-slim + steps: + - uses: actions/checkout@v4 + + - name: Setup Bun + uses: oven-sh/setup-bun@v2 + + # Install dependencies at root (Monorepo context) + - name: Install dependencies + run: bun i + + # Attempt to build the Astro site to ensure no errors + - name: Install and Build Site + working-directory: apps/site + run: | + bun install + bun run build diff --git a/.github/workflows/deploy-website.yml b/.github/workflows/site-deploy.yml similarity index 86% rename from .github/workflows/deploy-website.yml rename to .github/workflows/site-deploy.yml index 75a60840..42c9043f 100644 --- a/.github/workflows/deploy-website.yml +++ b/.github/workflows/site-deploy.yml @@ -1,4 +1,4 @@ -name: Deploy to GitHub Pages +name: 'site-deploy' on: push: @@ -21,10 +21,7 @@ jobs: - name: Checkout your repository using git uses: actions/checkout@v5 - - name: setup node - uses: actions/setup-node@v4 - with: - node-version: lts/* + # Install dependencies at root (Monorepo context) - name: Setup Bun uses: oven-sh/setup-bun@v2 - name: Install dependencies diff --git a/apps/app/src/components/main_section/text_editor/index.svelte b/apps/app/src/components/main_section/text_editor/index.svelte index 0e83255b..a6b0b253 100644 --- a/apps/app/src/components/main_section/text_editor/index.svelte +++ b/apps/app/src/components/main_section/text_editor/index.svelte @@ -40,7 +40,7 @@ {current_platform_type == 'mobile' && 'pt-22'} " > -
+
OR
-
+
{ platforms.map(({label, icon, binaries}, i)=>(