Skip to content

Commit

Permalink
fix: remove pull_request trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
abernier committed Aug 29, 2024
1 parent 7f03da9 commit 6e08e84
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ on:
- 'beta'
- 'alpha'
- 'canary-*'
pull_request:
branches: ['main']

env:
REGISTRY: ghcr.io
Expand Down Expand Up @@ -37,9 +35,9 @@ jobs:
needs: semantic-release-job
if: needs.semantic-release-job.outputs.new_release_version != ''

# Update the "Production"/"Preview" environment with the Vercel deployed URL
# 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:
Expand All @@ -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 }}" \
Expand Down

0 comments on commit 6e08e84

Please sign in to comment.