Skip to content

Commit

Permalink
Merge pull request #389 from jmmshn/patch_wf2
Browse files Browse the repository at this point in the history
Add Docs to PR WF
  • Loading branch information
jmmshn authored May 17, 2024
2 parents 30f62bd + abbdd4d commit b32f0b5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/pytest-docs.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
name: Build Docs

on:
[release, workflow_dispatch]
push:
branches:
- main
tags:
- "v*"
pull_request:
branches:
- main
release:
types: [published]

jobs:
build:
Expand Down Expand Up @@ -33,8 +42,8 @@ jobs:
run: |
cd docs_rst
make html
- name: Detect changes
if: ${{ !contains(github.ref, 'refs/heads/main') }}
- name: Detect changes on release
if: startsWith(github.head_ref, 'releases/')
id: changes
shell: bash
run: |
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ jobs:
run: pip install build

- name: Publish package
if: contains(github.ref, 'refs/heads/main')
uses: pypa/gh-action-pypi-publish@release/v1.5
with:
user: __token__
Expand Down

0 comments on commit b32f0b5

Please sign in to comment.