mirror of
https://github.com/flame-engine/flame.git
synced 2026-03-30 21:37:21 +00:00
# Description The docs site build was triggered on every push to `main`, causing unnecessary rebuilds. This PR moves the docs dispatch trigger into a dedicated `docs.yml` workflow that only runs when: - Files in `doc/**` change on `main` - A new `v*` tag is created The examples gh-pages deployment in `gh-pages.yml` remains unchanged. ## Checklist - [x] I have followed the [Contributor Guide] when preparing my PR. - [-] I have updated/added tests for ALL new/updated/fixed functionality. - [-] I have updated/added relevant documentation in `docs` and added dartdoc comments with `///`. - [-] I have updated/added relevant examples in `examples` or `docs`. ## Breaking Change? - [ ] Yes, this PR is a breaking change. - [x] No, this PR is not a breaking change. ## Related Issues [Contributor Guide]: https://github.com/flame-engine/flame/blob/main/CONTRIBUTING.md [Conventional Commit]: https://conventionalcommits.org [CHANGELOG]: https://github.com/flame-engine/flame/blob/main/CHANGELOG.md
24 lines
523 B
YAML
24 lines
523 B
YAML
name: Docs
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
paths:
|
|
- 'doc/**'
|
|
create:
|
|
tags:
|
|
- 'v*'
|
|
|
|
jobs:
|
|
build-docs:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Trigger building the docs
|
|
run: |
|
|
curl -XPOST -u "${{ secrets.DOCS_BUILD_DISPATCH }}" \
|
|
-H "Accept:application/vnd.github" \
|
|
-H "Content-Type:application/json" \
|
|
https://api.github.com/repos/flame-engine/flame-docs-site/actions/workflows/13757924/dispatches \
|
|
--data '{"ref": "main" }'
|