Skip to content

Commit

Permalink
ci: workflow to test docs for pull-requests
Browse files Browse the repository at this point in the history
  • Loading branch information
15r10nk committed Nov 13, 2024
1 parent 5b750dd commit 1c4e46f
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 9 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/deploy_development_docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: deploy development docs
on:
push:
branches: [main]

jobs:
build:
name: Deploy development docs
runs-on: ubuntu-latest
steps:
- name: Checkout main
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7

- run: pip install hatch
- name: publish docs
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git config user.name "Frank Hoffmann"
git config user.email "15r10nk@users.noreply.github.com"
git fetch origin gh-pages --depth=1
hatch run docs:mike deploy --push development
11 changes: 2 additions & 9 deletions .github/workflows/test_docs.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
name: test docs
on:
pull_request:
push:
branches: [main]

jobs:
build:
Expand All @@ -13,11 +11,6 @@ jobs:
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7

- run: pip install hatch
- name: publish docs
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: test docs
run: |
git config user.name "Frank Hoffmann"
git config user.email "15r10nk@users.noreply.github.com"
git fetch origin gh-pages --depth=1
hatch run docs:mike deploy --push development
hatch run docs:build

0 comments on commit 1c4e46f

Please sign in to comment.