moving doc publish to separate job
This commit is contained in:
parent
a023165a8d
commit
cf803bab8f
10
.github/workflows/build.yml
vendored
10
.github/workflows/build.yml
vendored
@ -20,6 +20,7 @@ concurrency:
|
||||
jobs:
|
||||
# Build job
|
||||
build:
|
||||
name: Build & Test
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
@ -41,6 +42,7 @@ jobs:
|
||||
command: test
|
||||
|
||||
doc:
|
||||
name: Build Documentation
|
||||
environment:
|
||||
name: github-pages
|
||||
url: ${{ steps.deployment.outputs.page_url }}
|
||||
@ -68,6 +70,14 @@ jobs:
|
||||
# Upload entire repository
|
||||
path: './target/doc'
|
||||
|
||||
deploy:
|
||||
name: Deploy Documentation
|
||||
environment:
|
||||
name: github-pages
|
||||
url: ${{ steps.deployment.outputs.page_url }}
|
||||
runs-on: ubuntu-latest
|
||||
needs: build
|
||||
steps:
|
||||
- name: Deploy to GitHub Pages
|
||||
id: deployment
|
||||
uses: actions/deploy-pages@v4
|
Loading…
Reference in New Issue
Block a user