mirror of
https://github.com/nlohmann/json.git
synced 2024-11-24 06:29:03 +08:00
Refine 'Publish documentation' workflow (#3673)
* Only publish documentation when changed * Enable manual publishing of the documentation * Don't try to publish documentation from forks
This commit is contained in:
parent
b6e2942d1c
commit
b13b8748b6
5
.github/workflows/publish_documentation.yml
vendored
5
.github/workflows/publish_documentation.yml
vendored
@ -5,6 +5,10 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- develop
|
- 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
|
# we don't want to have concurrent jobs, and we don't want to cancel running jobs to avoid broken publications
|
||||||
concurrency:
|
concurrency:
|
||||||
@ -13,6 +17,7 @@ concurrency:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
publish_documentation:
|
publish_documentation:
|
||||||
|
if: github.repository == 'nlohmann/json'
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
Loading…
Reference in New Issue
Block a user