File tree Expand file tree Collapse file tree 2 files changed +224
-188
lines changed Expand file tree Collapse file tree 2 files changed +224
-188
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+ workflow_dispatch :
9+
10+ jobs :
11+ publish_documentation :
12+ runs-on : ubuntu-latest
13+ permissions :
14+ contents : write
15+ environment :
16+ name : pypi
17+ url : https://pypi.org/p/fakeredis
18+ steps :
19+ - uses : actions/checkout@v4
20+ - name : Set up Python
21+ uses : actions/setup-python@v5
22+ with :
23+ python-version : " 3.11"
24+ - name : Configure Git Credentials
25+ run : |
26+ git config user.name github-actions[bot]
27+ git config user.email 41898282+github-actions[bot]@users.noreply.github.com
28+ - name : Publish documentation
29+ env :
30+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
31+ GOOGLE_ANALYTICS_KEY : ${{ secrets.GOOGLE_ANALYTICS_KEY }}
32+ run : |
33+ pip install -r docs/requirements.txt
34+ mkdocs gh-deploy --force
35+ mkdocs --version
You can’t perform that action at this time.
0 commit comments