diff --git a/.github/workflow.yml b/.github/workflows/workflow.yml similarity index 95% rename from .github/workflow.yml rename to .github/workflows/workflow.yml index 061e64c..c2d0c43 100644 --- a/.github/workflow.yml +++ b/.github/workflows/workflow.yml @@ -1,9 +1,6 @@ name: Deploy static content to Pages -on: - push: - branches: ['main'] - workflow_dispatch: +on: [push] permissions: contents: read @@ -32,6 +29,7 @@ jobs: deploy: needs: test + if: github.ref == 'refs/heads/main' environment: name: github-pages url: ${{ steps.deployment.outputs.page_url }}