Skip to content

Commit

Permalink
fix: pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
petertonysmith94 committed Jan 20, 2024
1 parent 1d9c5de commit 3d86c1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
jobs:
deploy:
# Only run if the build was successful
if: ${{ github.event.workflow_run.conclusion == 'success' }}
if: ${{ github.event.workflow_run.conclusion == 'success' && github.ref == 'refs/heads/main' }}
name: 🚀 Deploy
runs-on: ubuntu-latest
environment:
Expand All @@ -28,7 +28,7 @@ jobs:
uses: actions/deploy-pages@v4
with:
artifact_name: "build-artifact-${{ github.sha }}"
preview: ${{ github.ref != 'refs/heads/main' }}
preview: false

- name: Get the URL for the deployment
run: echo "${{ steps.deployment.outputs.page_url }}"

0 comments on commit 3d86c1e

Please sign in to comment.