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