File tree Expand file tree Collapse file tree 2 files changed +23
-16
lines changed Expand file tree Collapse file tree 2 files changed +23
-16
lines changed Original file line number Diff line number Diff line change 1- name : Documentation Deployment
2-
3- run-name : Deploying to GitHub Pages
1+ name : " Deploy `main` branch to GitHub Pages"
2+ run-name : " Deploy `main` (sha: ${{ github.sha }}) to Pages"
43
54on :
65 push :
@@ -12,12 +11,13 @@ permissions:
1211
1312jobs :
1413 deploy :
14+ name :
1515 runs-on : ubuntu-latest
1616 steps :
1717 - name : Checkout main branch
1818 uses : actions/checkout@v2
1919
20- - name : Installing Python
20+ - name : Install Python
2121 uses : actions/setup-python@v2
2222 with :
2323 # actions/setup-python recommends that python-version be fixed so that workflow runs are more
3737 run : pip install mkdocs-material
3838
3939 # This step force-pushes the docs to the "gh-pages" branch of the parallelchain-docs repo.
40- - name : Build and deploy mkdocs
40+ - name : Build and deploy documentation
4141 run : mkdocs gh-deploy --force
Original file line number Diff line number Diff line change 1- name : 🚀 Preview
1+ name : Deploy PR preview to GitHub Pages
2+ run-name : " Deploy preview for PR #${{ github.event.pull_request.number }}"
23
34concurrency : preview-${{ github.ref }}
45
@@ -17,25 +18,31 @@ permissions:
1718
1819jobs :
1920 preview :
20- name : 🚀 Preview
21+ name :
2122 runs-on : ubuntu-latest
2223 steps :
23- - name : 🛑 Cancel Previous Runs
24+ - name : Cancel previous runs
24252526
26- - name : ⬇️ Checkout
27+ - name : Checkout PR source branch
2728 uses : actions/checkout@v3
2829
29- - name : 🐍 Python
30+ - name : Install Python
3031 uses : actions/setup-python@v4
3132
32- - name : 🎈 Install and Build
33- run : |
34- pip install --upgrade pip
35- pip install mkdocs pymdown-extensions mkdocs-material
36- mkdocs build
33+ - name : Install mkdocs
34+ run : pip install mkdocs
3735
38- - name : 🚀 Deploy
36+ - name : Install pymdown-extensions
37+ run : pip install pymdown-extensions
38+
39+ - name : Install mkdocs-material
40+ run : pip install mkdocs-material
41+
42+ - name : Build documentation
43+ run : mkdocs build
44+
45+ - name : Deploy generated documentation
3946 uses : rossjrw/pr-preview-action@v1
4047 with :
4148 source-dir : ./site/
You can’t perform that action at this time.
0 commit comments