moving doc publish to separate job

This commit is contained in:
Andy Pack 2024-01-30 22:40:56 +00:00
parent a023165a8d
commit cf803bab8f
Signed by: sarsoo
GPG Key ID: A55BA3536A5E0ED7

View File

@ -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