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:
|
jobs:
|
||||||
# Build job
|
# Build job
|
||||||
build:
|
build:
|
||||||
|
name: Build & Test
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
@ -41,6 +42,7 @@ jobs:
|
|||||||
command: test
|
command: test
|
||||||
|
|
||||||
doc:
|
doc:
|
||||||
|
name: Build Documentation
|
||||||
environment:
|
environment:
|
||||||
name: github-pages
|
name: github-pages
|
||||||
url: ${{ steps.deployment.outputs.page_url }}
|
url: ${{ steps.deployment.outputs.page_url }}
|
||||||
@ -68,6 +70,14 @@ jobs:
|
|||||||
# Upload entire repository
|
# Upload entire repository
|
||||||
path: './target/doc'
|
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
|
- name: Deploy to GitHub Pages
|
||||||
id: deployment
|
id: deployment
|
||||||
uses: actions/deploy-pages@v4
|
uses: actions/deploy-pages@v4
|
Loading…
Reference in New Issue
Block a user