From d7462da424e15a41dc2a09d68e3291fbd36c9517 Mon Sep 17 00:00:00 2001 From: Antoine BERNIER Date: Thu, 29 Aug 2024 09:03:41 +0200 Subject: [PATCH] chore: remove pull_request trigger --- .github/workflows/release.yml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 708ff31c..23843452 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -6,8 +6,6 @@ on: - 'beta' - 'alpha' - 'canary-*' - pull_request: - branches: ['main'] env: REGISTRY: ghcr.io @@ -39,7 +37,7 @@ jobs: # Update the "Production"/"Preview" environment with the Vercel deployed URL environment: - name: ${{ github.event_name == 'push' && 'Production' || 'Preview' }} + name: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' && 'Production' || 'Preview' }} url: ${{ steps.vercel-deploy.outputs.deployment_url }} steps: @@ -54,12 +52,12 @@ jobs: --build-env NEXT_PUBLIC_LIBNAME_SHORT="pmndrs" \ --build-env BASE_PATH= \ --build-env DIST_DIR= \ - --build-env OUTPUT=${{ github.event_name == 'push' && '' || 'export' }} \ + --build-env OUTPUT= \ --build-env HOME_REDIRECT= \ - --build-env MDX_BASEURL="https://github.com/${{ github.repository }}/raw/${{ github.event_name == 'push' && github.ref_name || github.head_ref }}/docs" \ - --build-env EDIT_BASEURL="https://github.com/${{ github.repository }}/edit/${{ github.event_name == 'push' && github.ref_name || github.head_ref }}/docs" \ + --build-env MDX_BASEURL="https://github.com/${{ github.repository }}/raw/${{ github.ref_name }}/docs" \ + --build-env EDIT_BASEURL="https://github.com/${{ github.repository }}/edit/${{ github.ref_name }}/docs" \ --build-env NEXT_PUBLIC_URL="$VERCEL_PROJECT_PRODUCTION_URL" \ - --build-env ICON=${{ github.event_name == 'push' && '' || '🖨️' }} \ + --build-env ICON= \ --build-env LOGO=gutenberg.jpg \ --build-env GITHUB="https://github.com/${{ github.repository }}" \ --build-env DISCORD="${{ secrets.DISCORD }}" \