Skip to content

Commit 81118e0

Browse files
authored
Cleanup github pages workflow
1 parent ba75e05 commit 81118e0

1 file changed

Lines changed: 11 additions & 7 deletions

File tree

.github/workflows/github-pages.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,53 +14,57 @@ concurrency:
1414

1515
jobs:
1616
build:
17+
1718
permissions:
1819
contents: read
20+
1921
environment:
2022
name: github-pages
23+
2124
runs-on: ubuntu-latest
25+
2226
steps:
2327
- name: Checkout
2428
uses: actions/checkout@v3
29+
2530
- name: Set up Python 3.12
2631
uses: actions/setup-python@v4
2732
with:
2833
python-version: "3.12"
34+
2935
- name: Install dependencies
3036
run: |
3137
python -m pip install --upgrade pip
3238
python -m pip install poetry
3339
poetry config virtualenvs.create false
3440
poetry install --no-root --with dev
41+
3542
- name: Build static pages
3643
run: make docs-build
44+
3745
- name: Setup Pages
3846
uses: actions/configure-pages@v4
47+
3948
- name: Upload artifact
4049
uses: actions/upload-pages-artifact@v3
4150
with:
4251
path: './site'
4352

44-
# Deploy job
4553
deploy:
46-
# Add a dependency to the build job
4754
needs: build
4855

4956
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
5057
permissions:
5158
pages: write # to deploy to Pages
5259
id-token: write # to verify the deployment originates from an appropriate source
5360

54-
# Deploy to the github-pages environment
5561
environment:
5662
name: github-pages
5763
url: ${{ steps.deployment.outputs.page_url }}
5864

59-
# Specify runner + deployment step
6065
runs-on: ubuntu-latest
66+
6167
steps:
62-
- name: Setup Pages
63-
uses: actions/configure-pages@v4
6468
- name: Deploy to GitHub Pages
6569
id: deployment
66-
uses: actions/deploy-pages@v4 # or specific "vX.X.X" version tag for this action
70+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)