File tree Expand file tree Collapse file tree 1 file changed +19
-7
lines changed Expand file tree Collapse file tree 1 file changed +19
-7
lines changed Original file line number Diff line number Diff line change 1
1
name : Docs
2
2
3
3
on :
4
+ pull_request :
5
+ branches :
6
+ - main
7
+ paths :
8
+ - .github/workflows/docs.yml
9
+ - pyproject.toml
10
+ - s2fft/**
11
+ - docs/**
12
+ - notebooks/**
4
13
push :
5
14
branches :
6
15
- main
7
-
16
+
17
+ concurrency :
18
+ group : ${{ github.workflow }}-${{ github.ref }}
19
+ cancel-in-progress : ${{ github.ref != 'refs/heads/main' }}
20
+
8
21
jobs :
9
22
build :
10
23
11
24
runs-on : ubuntu-latest
12
- strategy :
13
- matrix :
14
- python-version : [3.9]
15
25
16
26
steps :
17
27
- name : Checkout Source
18
28
19
29
20
- - name : Set up Python ${{ matrix.python-version }}
30
+ - name : Set up Python
21
31
uses : actions/setup-python@v5
22
32
with :
23
- python-version : ${{ matrix.python-version }}
33
+ python-version : 3.x
34
+ cache : pip
35
+ cache-dependency-path : pyproject.toml
24
36
25
37
- name : Install dependencies
26
38
run : |
33
45
cd docs && make html
34
46
35
47
- name : Deploy
36
- if : github.ref == 'refs/heads/main'
48
+ if : github.event_name == 'push' && github. ref == 'refs/heads/main'
37
49
38
50
with :
39
51
branch : gh-pages # The branch the action should deploy to.
You can’t perform that action at this time.
0 commit comments