Skip to content

Commit

Permalink
Refine 'Publish documentation' workflow (#3673)
Browse files Browse the repository at this point in the history
* Only publish documentation when changed

* Enable manual publishing of the documentation

* Don't try to publish documentation from forks
  • Loading branch information
falbrechtskirchinger authored Aug 4, 2022
1 parent b6e2942 commit b13b874
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/publish_documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ on:
push:
branches:
- develop
paths:
- docs/mkdocs/**
- docs/examples/**
workflow_dispatch:

# we don't want to have concurrent jobs, and we don't want to cancel running jobs to avoid broken publications
concurrency:
Expand All @@ -13,6 +17,7 @@ concurrency:

jobs:
publish_documentation:
if: github.repository == 'nlohmann/json'
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
Expand Down

0 comments on commit b13b874

Please sign in to comment.