File tree 3 files changed +76
-39
lines changed
3 files changed +76
-39
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ name : Release
2
+
3
+ on :
4
+ push :
5
+ tags : [ 'v*' ]
6
+
7
+ env :
8
+ SLACK_WEBHOOK_URL : ${{ secrets.SLACK_WEBHOOK_URL }}
9
+
10
+ jobs :
11
+ test :
12
+ runs-on : ubuntu-latest
13
+
14
+ steps :
15
+ - uses : actions/checkout@v3
16
+ - name : Set up Python 3.11
17
+ uses : actions/setup-python@v4
18
+ with :
19
+ python-version : 3.11
20
+ - name : Install dependencies
21
+ id : install-deps
22
+ run :
23
+ python3 -m pip install --upgrade pip
24
+ pip install -r requirements.txt
25
+ # - name: nitpick
26
+ # id: nitpick
27
+ # run:
28
+ # sphinx-build -b html -n . _build/html
29
+ # - name: linkcheck
30
+ # id: linkcheck
31
+ # run:
32
+ # sphinx-build -b linkcheck . _build/linkcheck
33
+ # - name: spelling
34
+ # id: spelling
35
+ # run:
36
+ # sphinx-build -b spelling . _build/spelling
37
+
38
+ release :
39
+ name : Publish
40
+ needs : test
41
+ runs-on : ubuntu-latest
42
+
43
+ steps :
44
+ - uses : actions/checkout@v3
45
+ - name : Set up Python 3.11
46
+ uses : actions/setup-python@v4
47
+ with :
48
+ python-version : 3.11
49
+ - name : Install dependencies
50
+ id : install-deps
51
+ run :
52
+ python3 -m pip install --upgrade pip
53
+ pip install -r requirements.txt
54
+ - name : Build HTML
55
+ id : build
56
+ run :
57
+ sphinx-build -b html -d _build/doctrees . _build/html
58
+
59
+ - name : Publish to GitHub Pages
60
+ id : publish
61
+ uses : peaceiris/actions-gh-pages@v3
62
+ with :
63
+ github_token : ${{ secrets.GITHUB_TOKEN }}
64
+ publish_dir : _build/html
65
+
66
+ - uses : act10ns/slack@v1
67
+ with :
68
+ status : ${{ job.status }}
69
+ steps : ${{ toJson(steps) }}
Original file line number Diff line number Diff line change 1
- name : Test
1
+ name : Tests
2
2
3
3
on :
4
4
push :
5
- # tags :
6
- # - 'v*'
5
+ pull_request :
6
+ branches : [ master ]
7
7
8
8
env :
9
9
SLACK_WEBHOOK_URL : ${{ secrets.SLACK_WEBHOOK_URL }}
10
10
11
11
jobs :
12
12
test :
13
13
runs-on : ubuntu-latest
14
+
14
15
steps :
15
- - uses : actions/checkout@v2
16
+ - uses : actions/checkout@v3
16
17
- name : install
17
18
run :
18
19
pip install -r requirements.txt
31
32
32
33
build :
33
34
runs-on : ubuntu-latest
35
+
34
36
steps :
35
- - uses : actions/checkout@v2
37
+ - uses : actions/checkout@v3
36
38
- name : install
37
39
run :
38
40
pip install -r requirements.txt
You can’t perform that action at this time.
0 commit comments