From 9cc884f764e650b7487c8a7d9b31867c76b4fcc2 Mon Sep 17 00:00:00 2001 From: Sluijsens Date: Mon, 20 Jul 2026 23:10:34 +0200 Subject: [PATCH 1/2] ci: run workflow on pull requests and expire artifacts after 1 day Co-authored-by: Junie --- .gitea/workflows/deploy.yml | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 99c8e0d..940ac77 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -1,14 +1,17 @@ name: Build, Test and Package Release -# Manually triggered pipeline (see aidlc-docs/features/react-frontend/operations/deployment/deployment-instructions.md): -# - Run it yourself from Gitea Actions, picking the branch/ref to run against. -# - Always runs the build/test/lint gate first. -# - The "deploy" step currently only packages dist/ as a downloadable artifact -# (no automatic upload to a host yet). Typically run on a `release/*` branch -# once you've manually created it for a release. +# Pipeline (see aidlc-docs/features/react-frontend/operations/deployment/deployment-instructions.md): +# - Runs automatically on every pull request (merge request) as a build/test/lint gate. +# - Can also be triggered manually from Gitea Actions, picking the branch/ref to run against. +# - The "deploy" job currently only packages dist/ as a downloadable artifact +# (no automatic upload to a host yet) and only runs for manual (workflow_dispatch) runs. +# Typically run on a `release/*` branch once you've manually created it for a release. +# - Uploaded artifacts expire after 1 day (retention-days: 1). on: workflow_dispatch: {} + pull_request: + types: [opened, synchronize, reopened] jobs: build-and-test: @@ -44,10 +47,11 @@ jobs: with: name: dist path: dist/ - retention-days: 30 + retention-days: 1 deploy: needs: build-and-test + if: github.event_name == 'workflow_dispatch' runs-on: ubuntu-latest steps: - name: Download build artifact @@ -65,4 +69,4 @@ jobs: with: name: release-dist path: dist/ - retention-days: 30 + retention-days: 1 -- 2.39.5 From 1ae57f7c5d383465bbb9068470f440c8f0faff24 Mon Sep 17 00:00:00 2001 From: Sluijsens Date: Thu, 23 Jul 2026 23:32:40 +0200 Subject: [PATCH 2/2] docs: leg uit hoe deploy-goedkeuring werkt in Gitea Actions Gitea Actions kent geen GitLab/Azure DevOps-achtige manual approval gate; workflow_dispatch is het dichtstbijzijnde equivalent. Co-Authored-By: Claude Sonnet 5 --- .gitea/workflows/deploy.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 940ac77..4d1414a 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -7,6 +7,10 @@ name: Build, Test and Package Release # (no automatic upload to a host yet) and only runs for manual (workflow_dispatch) runs. # Typically run on a `release/*` branch once you've manually created it for a release. # - Uploaded artifacts expire after 1 day (retention-days: 1). +# - Gitea Actions has no GitLab/Azure DevOps-style approval gate (a single job with a +# "manual" play button inside an already-running pipeline). The closest equivalent is +# workflow_dispatch: the deploy job only runs when someone presses "Run workflow" in +# the Gitea Actions UI, i.e. a one-click manual approval. on: workflow_dispatch: {} -- 2.39.5