Skip to content

Commit

Permalink
feat: deploy previous on non-main branches
Browse files Browse the repository at this point in the history
  • Loading branch information
petertonysmith94 committed Jan 20, 2024
1 parent 0b8b915 commit 1d9c5de
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ jobs:
deploy:
# Only run if the build was successful
if: ${{ github.event.workflow_run.conclusion == 'success' }}

name: 🚀 Deploy
runs-on: ubuntu-latest
environment:
Expand All @@ -29,7 +28,7 @@ jobs:
uses: actions/deploy-pages@v4
with:
artifact_name: "build-artifact-${{ github.sha }}"
preview: false
preview: ${{ github.ref != 'refs/heads/main' }}

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

0 comments on commit 1d9c5de

Please sign in to comment.