0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-06 13:08:40 +08:00
discourse/.github/workflows/developer-docs-publish.yml
dependabot[bot] d5c21891b4
DEPS: Bump actions/checkout from 6 to 7 (#41156)
Bumps [actions/checkout](https://github.com/actions/checkout) from 6 to
7.
- [Release notes](https://github.com/actions/checkout/releases)
-
[Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v6...v7)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-06-24 21:54:51 +02:00

68 lines
1.5 KiB
YAML
Vendored

name: Developer Docs Publish
on:
push:
branches:
- main
paths:
- "docs/developer-guides/**"
- ".github/workflows/developer-docs-publish.yml"
pull_request:
paths:
- "docs/developer-guides/**"
- ".github/workflows/developer-docs-publish.yml"
concurrency:
group: developer-docs-publish-${{ format('{0}-{1}', github.head_ref || github.run_number, github.job) }}
cancel-in-progress: true
permissions:
contents: read
jobs:
dry_run:
if: github.event_name == 'pull_request' || github.repository != 'discourse/discourse-private-mirror'
runs-on: ubuntu-latest
timeout-minutes: 10
defaults:
run:
working-directory: docs/developer-guides
steps:
- uses: actions/checkout@v7
- uses: ruby/setup-ruby@v1
with:
ruby-version: "3.3"
bundler-cache: true
working-directory: docs/developer-guides
- run: bundle exec ./sync_docs --dry-run
publish:
if: github.ref == 'refs/heads/main'
needs: dry_run
runs-on: ubuntu-latest
timeout-minutes: 10
env:
DOCS_CATEGORY_ID: 56
DOCS_DATA_EXPLORER_QUERY_ID: 2111
DOCS_TARGET: https://meta.discourse.org
DOCS_API_KEY: ${{ secrets.META_DOCS_API_KEY }}
defaults:
run:
working-directory: docs/developer-guides
steps:
- uses: actions/checkout@v7
- uses: ruby/setup-ruby@v1
with:
ruby-version: "3.3"
bundler-cache: true
working-directory: docs/developer-guides
- run: bundle exec ./sync_docs