diff --git a/.github/workflows/dockerize.yml b/.github/workflows/dockerize.yml index 1c9807b2..8c1b1f23 100644 --- a/.github/workflows/dockerize.yml +++ b/.github/workflows/dockerize.yml @@ -24,13 +24,13 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout Code - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 + uses: docker/setup-buildx-action@v2 - name: Login to GitHub Container Registry - uses: docker/login-action@v1 + uses: docker/login-action@v2 with: registry: ghcr.io username: ${{ github.repository_owner }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0e83970b..7c2b7ae8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,7 +12,51 @@ on: type: string jobs: - publish: + publish_obsidian_plugin: + name: Publish Obsidian Plugin + runs-on: ubuntu-latest + defaults: + run: + shell: bash + working-directory: src/interface/obsidian + steps: + - uses: actions/checkout@v3 + + - name: Install Node + uses: actions/setup-node@v3 + with: + node-version: "lts/*" + + - name: Build Obsidian Plugin + run: | + yarn + yarn run build --if-present + + - name: Upload Obsidian Plugin main.js + uses: actions/upload-artifact@v3 + with: + if-no-files-found: error + name: main.js + path: src/interface/obsidian/main.js + + - name: Upload Obsidian Plugin manifest.json + uses: actions/upload-artifact@v3 + with: + if-no-files-found: error + name: manifest.json + path: src/interface/obsidian/manifest.json + + - name: Create Release + uses: softprops/action-gh-release@v1 + if: startsWith(github.ref, 'refs/tags/') + with: + generate_release_notes: true + files: | + src/interface/obsidian/main.js + src/interface/obsidian/manifest.json + + publish_desktop_apps: + name: Publish Desktop Apps strategy: matrix: include: @@ -114,4 +158,5 @@ jobs: uses: softprops/action-gh-release@v1 if: startsWith(github.ref, 'refs/tags/') with: + generate_release_notes: true files: dist/khoj_${{github.ref_name}}_amd64.${{matrix.extension}} diff --git a/Dockerfile b/Dockerfile index d1d23687..f40471ec 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,8 +11,7 @@ COPY . /app WORKDIR /app # Install Python Dependencies -RUN pip install --upgrade pip && \ - pip install --upgrade . +RUN pip install --upgrade pip && pip install --upgrade ".[dev]" # Run the Application # There are more arguments required for the application to run,