Skip to content

Commit 6820f34

Browse files
author
Murilo Marinho
committed
Using newer practices for githubpages to see if it helps
1 parent 169f1df commit 6820f34

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

.github/workflows/build_html.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ jobs:
2020
steps:
2121
- uses: actions/checkout@v4
2222

23+
# https://github.com/actions/starter-workflows/blob/main/pages/mdbook.yml
24+
- name: Setup Pages
25+
id: pages
26+
uses: actions/configure-pages@v5
27+
2328
# https://mystmd.org/guide/deployment-github-pages#fn-except-custom-domains
2429
- name: Install dependencies and build page
2530
run: |
@@ -32,9 +37,14 @@ jobs:
3237
with:
3338
path: "_build/html"
3439

35-
# https://github.com/actions/deploy-pages/issues/305
36-
- name: Configure Pages
37-
uses: actions/configure-pages@v4
40+
# Deployment job
41+
deploy:
42+
environment:
43+
name: github-pages
44+
url: ${{ steps.deployment.outputs.page_url }}
45+
runs-on: ubuntu-latest
46+
needs: build
47+
steps:
3848
- name: Deploy to GitHub Pages
3949
id: deployment
4050
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)