Skip to content

Commit a284f7e

Browse files
committed
Add step names to pr-preview workflow. Make names and run-names more descriptive.
1 parent 514c4ea commit a284f7e

File tree

2 files changed

+23
-16
lines changed

2 files changed

+23
-16
lines changed

.github/workflows/deploy.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
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

54
on:
65
push:
@@ -12,12 +11,13 @@ permissions:
1211

1312
jobs:
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
@@ -37,5 +37,5 @@ jobs:
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

.github/workflows/pr-preview.yml

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
name: 🚀 Preview
1+
name: Deploy PR preview to GitHub Pages
2+
run-name: "Deploy preview for PR #${{ github.event.pull_request.number }}"
23

34
concurrency: preview-${{ github.ref }}
45

@@ -17,25 +18,31 @@ permissions:
1718

1819
jobs:
1920
preview:
20-
name: 🚀 Preview
21+
name:
2122
runs-on: ubuntu-latest
2223
steps:
23-
- name: 🛑 Cancel Previous Runs
24+
- name: Cancel previous runs
2425
uses: styfle/[email protected]
2526

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/

0 commit comments

Comments
 (0)