Skip to content

Commit 586cf89

Browse files
authored
fix(gh-pages): deploy warning (#1857)
Signed-off-by: Angelo De Caro <adc@zurich.ibm.com>
1 parent e434f43 commit 586cf89

2 files changed

Lines changed: 30 additions & 7 deletions

File tree

.github/workflows/docs.yml

Lines changed: 28 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,16 @@ on:
1919
- '.github/workflows/docs.yml'
2020

2121
permissions:
22-
contents: write
22+
contents: read
23+
pages: write
24+
id-token: write
25+
26+
concurrency:
27+
group: "pages"
28+
cancel-in-progress: false
2329

2430
jobs:
25-
deploy:
31+
build:
2632
runs-on: ubuntu-latest
2733
steps:
2834
- name: Checkout code
@@ -52,7 +58,24 @@ jobs:
5258
run: |
5359
mkdocs build --strict
5460
55-
- name: Deploy to GitHub Pages
61+
- name: Setup Pages
5662
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
57-
run: |
58-
mkdocs gh-deploy --force
63+
uses: actions/configure-pages@v5
64+
65+
- name: Upload artifact
66+
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
67+
uses: actions/upload-pages-artifact@v3
68+
with:
69+
path: 'site'
70+
71+
deploy:
72+
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
73+
environment:
74+
name: github-pages
75+
url: ${{ steps.deployment.outputs.page_url }}
76+
runs-on: ubuntu-latest
77+
needs: build
78+
steps:
79+
- name: Deploy to GitHub Pages
80+
id: deployment
81+
uses: actions/deploy-pages@v4

requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
mkdocs==1.6.0
2-
mkdocs-material==9.5.39
1+
mkdocs==1.6.1
2+
mkdocs-material==9.5.47

0 commit comments

Comments
 (0)