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 11---
22
3- name : Upload Python Package
3+ name : Upload Python Package to PyPI
44
55on :
66 release :
1010 publish :
1111 runs-on : ubuntu-latest
1212 permissions :
13- contents : write
1413 id-token : write # IMPORTANT: this permission is mandatory for trusted publishing
1514 environment :
1615 name : pypi
34333534 with :
3635 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