Skip to content

Commit d55040f

Browse files
committed
CI: Update publish-docs.yml
Use actions/upload-pages-artifact@v3 instead of v1, to avoid a soon deprecated version of upload-artifact.
1 parent f36ec36 commit d55040f

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

.github/workflows/publish-docs.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
name: Publish docs
77

8-
# 2024-07-19: ubuntu-latest = ubuntu-22.04
8+
# 2024-12-12: ubuntu-latest = ubuntu-22.04
99
# See https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners#standard-github-hosted-runners-for-public-repositories
1010
on:
1111
# Runs on pushes targeting the default branch
@@ -21,18 +21,19 @@ permissions:
2121
pages: write
2222
id-token: write
2323

24-
# Allow one concurrent deployment
24+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
25+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
2526
concurrency:
2627
group: "pages"
27-
cancel-in-progress: true
28+
cancel-in-progress: false
2829

2930
jobs:
3031
# Build job
3132
build:
3233
runs-on: ubuntu-latest
3334
steps:
3435
- name: Checkout
35-
uses: actions/checkout@v3
36+
uses: actions/checkout@v4
3637
- name: Build
3738
run: |
3839
# Prevent blocking apt install on a question during configuring of tzdata.
@@ -56,14 +57,14 @@ jobs:
5657
mv _build/docs/docs/manual/html _publish/manual
5758
mv _build/docs/docs/reference/html _publish/reference
5859
- name: Setup Pages
59-
uses: actions/configure-pages@v2
60+
uses: actions/configure-pages@v5
6061
- name: Build with Jekyll
6162
uses: actions/jekyll-build-pages@v1
6263
with:
6364
source: ./_publish
6465
destination: ./_site
6566
- name: Upload artifact
66-
uses: actions/upload-pages-artifact@v1
67+
uses: actions/upload-pages-artifact@v3
6768

6869
# Deployment job
6970
# Publish documentation at https://libsigcplusplus.github.io/libsigcplusplus/
@@ -76,5 +77,5 @@ jobs:
7677
steps:
7778
- name: Deploy to GitHub Pages
7879
id: deployment
79-
uses: actions/deploy-pages@v1
80+
uses: actions/deploy-pages@v4
8081

0 commit comments

Comments
 (0)