Skip to content

Commit bbbaf1e

Browse files
committed
ci: Update actions/deploy-pages to v4 and split jobs
1 parent 63a8cc5 commit bbbaf1e

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

.github/workflows/rustdoc.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,11 @@ concurrency:
3030
cancel-in-progress: false
3131

3232
jobs:
33-
# Single deploy job since we're just deploying
34-
deploy:
35-
environment:
36-
name: github-pages
37-
url: ${{ steps.deployment.outputs.page_url }}
33+
build:
3834
runs-on: ubuntu-latest
3935
steps:
4036
- name: Checkout
4137
uses: actions/checkout@v3
42-
- name: Setup Pages
43-
uses: actions/configure-pages@v3
4438
- name: Build Documentation
4539
run: cargo doc --all --no-deps
4640
- name: Add Redirect
@@ -57,6 +51,13 @@ jobs:
5751
with:
5852
# Upload docs output
5953
path: './target/doc'
54+
deploy:
55+
environment:
56+
name: github-pages
57+
url: ${{ steps.deployment.outputs.page_url }}
58+
runs-on: ubuntu-latest
59+
needs: build
60+
steps:
6061
- name: Deploy to GitHub Pages
6162
id: deployment
62-
uses: actions/deploy-pages@v2
63+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)