Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 15 additions & 6 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,11 @@ concurrency:
cancel-in-progress: false

jobs:
deploy:
name: Deploy Documentation
build:
name: Build Documentation
if: github.repository == 'dnv-opensource/solarfarmer-python-sdk'
runs-on: ubuntu-latest

environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

steps:
- name: Checkout repository
uses: actions/checkout@v6
Expand Down Expand Up @@ -85,6 +81,19 @@ jobs:
with:
path: site

# Deploying from a separate job avoids a race where deploy-pages lists artifacts
# before the one just uploaded is visible (actions/deploy-pages#451), and lets a
# failed deployment be re-run without uploading a duplicate artifact.
deploy:
name: Deploy Documentation
needs: build
runs-on: ubuntu-latest

environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v5
Loading