Skip to content

Commit be9bd6b

Browse files
committed
Update pages publication workflow
1 parent 6b9d376 commit be9bd6b

1 file changed

Lines changed: 7 additions & 11 deletions

File tree

.github/workflows/pages.yml

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
# This workflow uses actions that are not certified by GitHub.
2-
# They are provided by a third-party and are governed by
3-
# separate terms of service, privacy policy, and support
4-
# documentation.
5-
61
# Sample workflow for building and deploying a Jekyll site to GitHub Pages
72
name: Deploy Jekyll site to Pages
83

@@ -35,7 +30,7 @@ jobs:
3530
working-directory: docs
3631
steps:
3732
- name: Checkout
38-
uses: actions/checkout@v3
33+
uses: actions/checkout@v4
3934
- name: Setup Ruby
4035
uses: ruby/setup-ruby@v1
4136
with:
@@ -45,7 +40,7 @@ jobs:
4540
working-directory: '${{ github.workspace }}/docs'
4641
- name: Setup Pages
4742
id: pages
48-
uses: actions/configure-pages@v3
43+
uses: actions/configure-pages@v5
4944
- name: Run Dokka
5045
run: ./gradlew dokkaGenerate
5146
working-directory: '${{ github.workspace }}'
@@ -58,10 +53,11 @@ jobs:
5853
env:
5954
JEKYLL_ENV: production
6055
- name: Upload artifact
61-
# Automatically uploads an artifact from the './_site' directory by default
62-
uses: actions/upload-pages-artifact@v1
56+
uses: actions/upload-artifact@v4
6357
with:
64-
path: "docs/_site/"
58+
name: github-pages
59+
path: ./docs/_site
60+
retention-days: 1
6561

6662
# Deployment job
6763
deploy:
@@ -73,4 +69,4 @@ jobs:
7369
steps:
7470
- name: Deploy to GitHub Pages
7571
id: deployment
76-
uses: actions/deploy-pages@v2
72+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)