Skip to content

Commit 6fb6207

Browse files
committed
Separate Build and Deploy jobs
1 parent a18b3dd commit 6fb6207

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

.github/workflows/deploy.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,7 @@ concurrency:
1414
cancel-in-progress: true
1515

1616
jobs:
17-
deploy:
18-
environment:
19-
name: main
20-
url: ${{ steps.deployment.outputs.page_url }}
17+
build:
2118
name: Build Documentation
2219
runs-on: ubuntu-latest
2320
steps:
@@ -30,8 +27,15 @@ jobs:
3027
- name: Upload documentation artifact
3128
uses: actions/upload-artifact@v3
3229
with:
33-
name: documentation
3430
path: _build/html/
31+
deploy:
32+
name: Deploy Documentation
33+
needs: build
34+
runs-on: ubuntu-latest
35+
environment:
36+
name: main
37+
url: ${{ steps.deployment.outputs.page_url }}
38+
steps:
3539
- name: Deploy to GitHub Pages
3640
id: deployment
3741
uses: actions/deploy-pages@v1

0 commit comments

Comments
 (0)