From d71bfce2a054579a4fcef640ca587f11a3b44b62 Mon Sep 17 00:00:00 2001 From: Mingfei Shao <2475897+mfshao@users.noreply.github.com> Date: Wed, 26 Apr 2023 10:56:10 -0500 Subject: [PATCH] Update main.yml --- .github/workflows/main.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 390f60b..9a3c21d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -7,8 +7,10 @@ name: build # Controls when the workflow will run -on: +on: + # Triggers the workflow on push or pull request events but only for the "main" branch push: + branches: [ "main" ] #pull_request: # branches: [ "main" ] @@ -30,8 +32,8 @@ jobs: - uses: actions/setup-python@v4 with: python-version: '3.9' - cache: pip + cache: 'pip' # caching pip dependencies # install dependencies listed in requirements.txt file - - run: python3 -m pip install -r requirements.txt + - run: pip install -r requirements.txt # deploy mkdocs to github pages - run: mkdocs gh-deploy --force --clean --verbose