ci: run workflow on pull requests and expire artifacts after 1 day
Build, Test and Package Release / build-and-test (pull_request) Successful in 55s
Build, Test and Package Release / deploy (pull_request) Skipped

Co-authored-by: Junie <junie@jetbrains.com>
This commit is contained in:
2026-07-20 23:10:34 +02:00
co-authored by Junie
parent 530e86dfe2
commit 9cc884f764
+12 -8
View File
@@ -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