Skip to content

Commit 0d521aa

Browse files
committed
DOC: publish documentation at every push to the main branch
1 parent 2f98198 commit 0d521aa

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/docs.yml

+7-7
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,12 @@ name: docs
66

77
on:
88
push:
9-
tags:
10-
- '[0-9]+.[0-9]+.[0-9]+'
9+
branches:
10+
- main
11+
paths:
12+
- docs/**
13+
- CHANGELOG.rst
14+
- README.md
1115
pull_request:
1216
branches:
1317
- main
@@ -16,10 +20,6 @@ on:
1620
- docs/**
1721
- CHANGELOG.rst
1822
- README.md
19-
workflow_dispatch:
20-
inputs:
21-
tag:
22-
required: true
2323

2424
jobs:
2525

@@ -46,6 +46,6 @@ jobs:
4646
environment:
4747
name: github-pages
4848
runs-on: ubuntu-latest
49-
if: ${{ github.event_name == 'workflow_dispatch' || github.ref_type == 'tag' }}
49+
if: ${{ github.ref == 'refs/heads/main' }}
5050
steps:
5151
- uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)