diff --git a/.github/workflows/build_beta_docker_image.yml b/.github/workflows/build_beta_docker_image.yml deleted file mode 100644 index e8f4dc8..0000000 --- a/.github/workflows/build_beta_docker_image.yml +++ /dev/null @@ -1,54 +0,0 @@ -name: Build and Push Docker Image - -on: - push: - branches: - - beta - workflow_dispatch: - -env: - REGISTRY: ghcr.io - IMAGE_NAME: ${{ github.repository }} - -jobs: - build-and-push: - runs-on: ubuntu-latest - permissions: - contents: read - packages: write - - steps: - - name: Checkout repository - uses: actions/checkout@v4 - - - name: Log in to the Container registry - uses: docker/login-action@v3 - with: - registry: ${{ env.REGISTRY }} - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} - - - name: Extract metadata (tags, labels) for Docker - id: meta - uses: docker/metadata-action@v5 - with: - images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} - tags: | - type=raw,value=beta - type=ref,event=branch - type=ref,event=pr - type=semver,pattern={{version}} - type=sha,prefix= - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 - - - name: Build and push Docker image - uses: docker/build-push-action@v5 - with: - context: . - push: true - tags: ${{ steps.meta.outputs.tags }} - labels: ${{ steps.meta.outputs.labels }} - cache-from: type=gha - cache-to: type=gha,mode=max diff --git a/.github/workflows/build_docker_image.yml b/.github/workflows/build_docker_image.yml index 3b607dc..62032ef 100644 --- a/.github/workflows/build_docker_image.yml +++ b/.github/workflows/build_docker_image.yml @@ -4,6 +4,9 @@ on: push: branches: - master + pull_request: + branches: + - master workflow_dispatch: env: @@ -34,7 +37,6 @@ jobs: with: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} tags: | - type=raw,value=latest type=ref,event=branch type=ref,event=pr type=semver,pattern={{version}} diff --git a/components/app/windows/newsView.vue b/components/app/windows/newsView.vue index 32a3354..4951807 100644 --- a/components/app/windows/newsView.vue +++ b/components/app/windows/newsView.vue @@ -82,9 +82,7 @@ const aiSummary = async () => { activateAiSummary.value = true; isGenerating.value = true; try { - const req = await fetch( - `/api/ai/summarize/${slug}?lang=${String(locale.value)}`, - ); + const req = await fetch(`/api/ai/summarize/${slug}?lang=${String(locale)}`); const reader = req.body?.getReader(); const decoder = new TextDecoder(); while (reader) { diff --git a/components/app/windows/settings.vue b/components/app/windows/settings.vue index cc20bfa..2977b23 100644 --- a/components/app/windows/settings.vue +++ b/components/app/windows/settings.vue @@ -174,42 +174,7 @@ const submitUserPassword = async () => { };