From 5c92bee4d1885b3820fd736bdca20e5eb96adf5f Mon Sep 17 00:00:00 2001 From: Joshua Maldonado Date: Fri, 25 Jun 2021 14:03:21 -0400 Subject: [PATCH] updated github actions --- .github/workflows/build_and_deploy_to_gh_pages.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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.