Skip to content

Commit

Permalink
update to github page deployment action
Browse files Browse the repository at this point in the history
  • Loading branch information
laureng-hd committed Jul 30, 2024
1 parent 615cd2f commit fce03fb
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/python-docpage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit fce03fb

Please sign in to comment.