diff --git a/docs/administration/config-cheat-sheet.md b/docs/administration/config-cheat-sheet.md index 0b21d18a..30dca5e6 100644 --- a/docs/administration/config-cheat-sheet.md +++ b/docs/administration/config-cheat-sheet.md @@ -1675,6 +1675,7 @@ PROXY_HOSTS = *.github.com - `ARTIFACT_RETENTION_DAYS`: **90**: Days to keep artifacts. Old artifacts will be deleted after this period. 0 means keep forever. Changes only apply to newly uploaded artifacts, existing ones keep the expiry stored when they were uploaded. Artifacts could have their own retention periods by setting the `retention-days` option in `actions/upload-artifact` step. +- `ARTIFACT_PREVIEW_MAX_SIZE`: **10485760**: Maximum total artifact size in bytes that can be browsed or previewed in the web UI. Set to `0` to disable artifact previews or `-1` for no limit. Individual files are also limited by [`MAX_DISPLAY_FILE_SIZE`](#ui-ui). - `RUN_RETENTION_DAYS`: **400**: Days to keep completed runs. Old runs and everything under them will be deleted after this period. 0 means keep forever. - `ZOMBIE_TASK_TIMEOUT`: **10m**: Timeout to stop the task which have running status, but haven't been updated for a long time - `ENDLESS_TASK_TIMEOUT`: **3h**: Timeout to stop the tasks which have running status and continuous updates, but don't end for a long time diff --git a/docs/usage/actions/artifacts.md b/docs/usage/actions/artifacts.md new file mode 100644 index 00000000..731840dd --- /dev/null +++ b/docs/usage/actions/artifacts.md @@ -0,0 +1,28 @@ +--- +date: "2026-08-30T00:00:00+02:00" +slug: "artifacts" +sidebar_position: 70 +--- + +# Artifacts + +Workflow runs can store files such as test results, coverage reports, and build output as artifacts. Artifacts are uploaded by workflows, for example with [`actions/upload-artifact`](https://github.com/actions/upload-artifact), and appear on the run page after the upload completes. + +## Previewing artifacts + +Select an artifact on the run page to open its file browser and preview in a new tab. The preview identifies the originating run and attempt, and provides links back to that run and to download the complete artifact. Selecting files in the browser updates the preview in the same tab. + +Artifact previews: + +- are available only to signed-in users who can access the Actions run; +- render text-based files and PDFs; +- run HTML and JavaScript content in a sandboxed frame; and +- label the rendered content as automatically generated by Gitea Actions. + +Unsupported or oversized files can still be downloaded with the complete artifact. + +## Instance configuration + +Site administrators can limit the total artifact size that can be browsed or previewed with `ARTIFACT_PREVIEW_MAX_SIZE` in the `[actions]` section of `app.ini`. The default is 10 MiB. Set it to `0` to disable previews or `-1` to allow artifacts of any size. + +The size of an individual previewed file is also limited by [`MAX_DISPLAY_FILE_SIZE`](../../administration/config-cheat-sheet.md#ui-ui) in the `[ui]` section.