File tree Expand file tree Collapse file tree 4 files changed +20
-6
lines changed Expand file tree Collapse file tree 4 files changed +20
-6
lines changed Original file line number Diff line number Diff line change 13
13
tags :
14
14
- " *"
15
15
16
+ pull_request :
17
+ branches : [main]
18
+ paths :
19
+ - " .github/workflows/documentation.yml"
20
+ - requirements/documentation.txt
21
+
16
22
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
17
23
permissions :
18
24
contents : read
@@ -54,15 +60,26 @@ jobs:
54
60
- name : Build static website
55
61
run : mkdocs build --verbose
56
62
63
+ - name : Save build doc as artifact
64
+ uses : actions/upload-artifact@v3
65
+ with :
66
+ name : documentation
67
+ path : site/
68
+ if-no-files-found : error
69
+ retention-days : 30
70
+
57
71
- name : Setup Pages
58
72
uses : actions/configure-pages@v3
73
+ if : github.event_name == 'push' && (startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/main')
59
74
60
75
- name : Upload artifact
61
76
uses : actions/upload-pages-artifact@v1
77
+ if : github.event_name == 'push' && (startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/main')
62
78
with :
63
79
# Upload entire repository
64
- path : site
80
+ path : site/
65
81
66
82
- name : Deploy to GitHub Pages
67
83
id : deployment
84
+ if : github.event_name == 'push' && (startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/main')
68
85
uses : actions/deploy-pages@v1
Original file line number Diff line number Diff line change 1
- setuptools
2
- wheel
3
-
4
1
-r requirements/base.txt
5
2
6
3
-e "."
Original file line number Diff line number Diff line change 5
5
black
6
6
feedparser>=6.0,<6.1
7
7
flake8>=4,<6.1
8
- pre-commit>=2.10 ,<3.1
8
+ pre-commit>=3 ,<3.2
9
9
pytest-cov==4.0.*
10
10
validator-collection>=1.5,<1.6
Original file line number Diff line number Diff line change 1
1
# Documentation
2
2
# -----------------------
3
3
mkdocs-bootswatch>=1,<2
4
- mkdocs-minify-plugin==0.5 .*
4
+ mkdocs-minify-plugin==0.6 .*
5
5
pygments>=2.5,<3
6
6
pymdown-extensions>=7,<10
You can’t perform that action at this time.
0 commit comments