File tree Expand file tree Collapse file tree 2 files changed +35
-11
lines changed Expand file tree Collapse file tree 2 files changed +35
-11
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+
3
+ name : Generate and publish documentation
4
+
5
+ on :
6
+ release :
7
+ types : [published]
8
+
9
+ jobs :
10
+ publish :
11
+ runs-on : ubuntu-latest
12
+ permissions :
13
+ contents : write
14
+ environment :
15
+ name : pypi
16
+ url : https://pypi.org/p/fakeredis
17
+ steps :
18
+ - uses : actions/checkout@v4
19
+ - name : Set up Python
20
+ uses : actions/setup-python@v5
21
+ with :
22
+ python-version : " 3.11"
23
+ - name : Configure Git Credentials
24
+ run : |
25
+ git config user.name github-actions[bot]
26
+ git config user.email 41898282+github-actions[bot]@users.noreply.github.com
27
+ - name : Publish documentation
28
+ env :
29
+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
30
+ GOOGLE_ANALYTICS_KEY : ${{ secrets.GOOGLE_ANALYTICS_KEY }}
31
+ run : |
32
+ pip install -r docs/requirements.txt
33
+ mkdocs gh-deploy --force
34
+ mkdocs --version
Original file line number Diff line number Diff line change 1
1
---
2
2
3
- name : Upload Python Package
3
+ name : Upload Python Package to PyPI
4
4
5
5
on :
6
6
release :
10
10
publish :
11
11
runs-on : ubuntu-latest
12
12
permissions :
13
- contents : write
14
13
id-token : write # IMPORTANT: this permission is mandatory for trusted publishing
15
14
environment :
16
15
name : pypi
34
33
uses : pypa/gh-action-pypi-publish@v1.8.14
35
34
with :
36
35
print_hash : true
37
-
38
- - name : Publish documentation
39
- env :
40
- GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
41
- GOOGLE_ANALYTICS_KEY : ${{ secrets.GOOGLE_ANALYTICS_KEY }}
42
- run : |
43
- pip install -r docs/requirements.txt
44
- mkdocs gh-deploy --force
45
- mkdocs --version
You can’t perform that action at this time.
0 commit comments