From fce03fb6f3a80c1d68b5d30c3f8fca9c5a85c21f Mon Sep 17 00:00:00 2001 From: laureng-hd Date: Tue, 30 Jul 2024 15:30:25 -0700 Subject: [PATCH] update to github page deployment action --- .github/workflows/python-docpage.yml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/python-docpage.yml b/.github/workflows/python-docpage.yml index 7bbde4d..e538b18 100644 --- a/.github/workflows/python-docpage.yml +++ b/.github/workflows/python-docpage.yml @@ -2,16 +2,18 @@ name: Publish Docs Page on: - release: - types: [published] + pull_request: + branches: + - main + types: [closed] permissions: contents: write jobs: - deploy: runs-on: ubuntu-latest + if: github.event.pull_request.merged == true steps: - name: Checkout Code uses: actions/checkout@v4 @@ -22,16 +24,16 @@ jobs: with: python-version: '3.x' - - name: + - name: Cache dependencies uses: actions/cache@v4 with: key: ${{ github.ref }} path: .cache - - name: install mkdocs - run: + - name: Install mkdocs + run: | pip install mkdocs pip install mkdocs-material - - name: deploy-page + - name: Deploy page run: mkdocs gh-deploy --force