diff --git a/.github/workflows/build_and_deploy_to_gh_pages.yml b/.github/workflows/build_and_deploy_to_gh_pages.yml index d5b1a20..4ec9fa2 100644 --- a/.github/workflows/build_and_deploy_to_gh_pages.yml +++ b/.github/workflows/build_and_deploy_to_gh_pages.yml @@ -1,10 +1,15 @@ name: Build and Deploy -on: [push, pull_request] + +on: + push: + # Sequence of patterns matched against refs/tags + tags: + - 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 + jobs: build-and-deploy: runs-on: ubuntu-latest # Only build and deploy on versioned tags - if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v') steps: - name: Checkout 🛎️ uses: actions/checkout@v2.3.1 # If you're using actions/checkout@v2 you must set persist-credentials to false in most cases for the deployment to work correctly.