Skip to content

Commit 233c7cf

Browse files
committed
ci: optimize docs workflow by combining build and deploy jobs
Merged the build and deploy jobs into a single job to simplify the workflow and reduce execution time. The Pages environment configuration is now properly set on the single job.
1 parent c72a180 commit 233c7cf

1 file changed

Lines changed: 5 additions & 8 deletions

File tree

.github/workflows/docs.yaml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,16 @@ concurrency:
1818
cancel-in-progress: false
1919

2020
jobs:
21-
build:
21+
deploy:
2222
runs-on: ubuntu-latest
2323
defaults:
2424
run:
2525
working-directory: docs
2626

27+
environment:
28+
name: github-pages
29+
url: ${{ steps.deployment.outputs.page_url }}
30+
2731
steps:
2832
- name: Checkout repository
2933
uses: actions/checkout@v4
@@ -49,13 +53,6 @@ jobs:
4953
with:
5054
path: docs/build
5155

52-
deploy:
53-
needs: build
54-
runs-on: ubuntu-latest
55-
environment:
56-
name: github-pages
57-
url: ${{ steps.deployment.outputs.page_url }}
58-
steps:
5956
- name: Deploy to GitHub Pages
6057
id: deployment
6158
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)