ci(docs/preview): Don't try to deploy preview docs for tagged releases #2632

Merged
Jade merged 1 commit from julian45/continuwuity:julian/ci/docs-fixpreviewstep into main 2026-12-01 16:32:59 +00:00
Member

This pull request does what it says on the tin, in order to avoid situations like this one in future.

It also adds a pre-commit hook for Forgejo Actions validation that only runs if files under the .forgejo directory are changed.

Pull request checklist:

  • This pull request targets the main branch, and the branch is named something other than
    main.
  • I have written an appropriate pull request title and my description is clear.
  • I understand I am responsible for the contents of this pull request.
  • I have followed the contributing guidelines:
This pull request does what it says on the tin, in order to avoid situations like [this one](https://forgejo.ellis.link/continuwuation/continuwuity/issues/2624#issuecomment-41528) in future. It also adds a pre-commit hook for Forgejo Actions validation that only runs if files under the `.forgejo` directory are changed. **Pull request checklist:** <!-- You need to complete these before your PR can be considered. If you aren't sure about some, feel free to ask for clarification in #dev:continuwuity.org. --> - [x] This pull request targets the `main` branch, and the branch is named something other than `main`. - [x] I have written an appropriate pull request title and my description is clear. - [x] I understand I am responsible for the contents of this pull request. - I have followed the [contributing guidelines][c1]: - [x] My contribution follows the [code style][c2], if applicable. - [x] I ran [pre-commit checks][c1pc] before opening/drafting this pull request. - [x] I have [tested my contribution][c1t] (or proof-read it for documentation-only changes) myself, if applicable. This includes ensuring code compiles. - [x] My commit messages follow the [commit message format][c1cm] and are descriptive. [c1]: https://forgejo.ellis.link/continuwuation/continuwuity/src/branch/main/CONTRIBUTING.md [c2]: https://forgejo.ellis.link/continuwuation/continuwuity/src/branch/main/docs/development/code_style.mdx [c1pc]: https://forgejo.ellis.link/continuwuation/continuwuity/src/branch/main/CONTRIBUTING.md#pre-commit-checks [c1t]: https://forgejo.ellis.link/continuwuation/continuwuity/src/branch/main/CONTRIBUTING.md#running-tests-locally [c1cm]: https://forgejo.ellis.link/continuwuation/continuwuity/src/branch/main/CONTRIBUTING.md#commit-messages
ci(docs/preview): Don't try to deploy preview docs for tagged releases
All checks were successful
Auto Labeler / Apply labels based on changed files (pull_request_target) Successful in 4s
Checks / Prek / Check changed files (pull_request) Successful in 6s
Checks / Prek / Clippy and Cargo Tests (pull_request) Has been skipped
Checks / Changelog / Check changelog is added (pull_request_target) Successful in 8s
Documentation / Build and Deploy Documentation (pull_request) Successful in 1m8s
Checks / Prek / Pre-commit & Formatting (pull_request) Successful in 1m24s
6a537b5b1d
Also, run action validations as a pre-commit hook if workflow files are changed
@ -72,3 +72,3 @@
- name: Deploy to Grebedoc (Preview)
if: github.ref != 'refs/heads/main'
if: github.ref != 'refs/heads/main' && github.ref_type != 'tag'
Owner

Why not just remove the tag trigger?

Why not just remove the tag trigger?
Author
Member

We still want the action as a whole (including prod deploys) to run if a release is tagged, no?

We still want the action as a whole (including prod deploys) to run if a release is tagged, no?
Owner

That's generally covered by push-to-main

That's generally covered by push-to-main
Author
Member

Yes, but I figure it doesn't hurt to still account for situations where that might not be the case for whatever reason.

Yes, but I figure it doesn't hurt to still account for situations where that *might not* be the case for whatever reason.
Owner

Generally no, an off-branch tag will have outdated docs because it's a backport. main is always the canonical version right now

Generally no, an off-branch tag will have outdated docs because it's a backport. main is always the canonical version right now
julian45 marked this conversation as resolved
julian45 force-pushed julian/ci/docs-fixpreviewstep from 6a537b5b1d
All checks were successful
Auto Labeler / Apply labels based on changed files (pull_request_target) Successful in 4s
Checks / Prek / Check changed files (pull_request) Successful in 6s
Checks / Prek / Clippy and Cargo Tests (pull_request) Has been skipped
Checks / Changelog / Check changelog is added (pull_request_target) Successful in 8s
Documentation / Build and Deploy Documentation (pull_request) Successful in 1m8s
Checks / Prek / Pre-commit & Formatting (pull_request) Successful in 1m24s
to c316d8f969
All checks were successful
Checks / Prek / Check changed files (pull_request) Successful in 7s
Checks / Changelog / Check changelog is added (pull_request_target) Successful in 9s
Checks / Prek / Clippy and Cargo Tests (pull_request) Has been skipped
Documentation / Build and Deploy Documentation (pull_request) Successful in 1m7s
Checks / Prek / Pre-commit & Formatting (pull_request) Successful in 2m11s
Checks / Prek / Check changed files (push) Successful in 11s
Checks / Prek / Clippy and Cargo Tests (push) Has been skipped
Checks / Prek / Pre-commit & Formatting (push) Successful in 48s
Documentation / Build and Deploy Documentation (push) Successful in 1m8s
Release Docker Image / Build linux-amd64 (release) (push) Successful in 8m28s
Release Docker Image / Build linux-arm64 (release) (push) Successful in 12m58s
Release Docker Image / Build linux-amd64 (max-perf) (push) Has been skipped
Release Docker Image / Build linux-arm64 (max-perf) (push) Has been skipped
Release Docker Image / Release Binaries (push) Has been skipped
Release Docker Image / Create Max-Perf Manifest (push) Has been skipped
Release Docker Image / Create Multi-arch Release Manifest (push) Successful in 16s
Release Docker Image / Mirror Images (push) Has been skipped
2026-12-01 14:28:16 +00:00
Compare
Jade merged commit c316d8f969 into main 2026-12-01 16:32:59 +00:00
Jade deleted branch julian/ci/docs-fixpreviewstep 2026-12-01 16:32:59 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
continuwuation/continuwuity!2632
No description provided.