This commit is contained in:
DealSage template sync
2026-09-26 05:57:32 +00:00
parent 36aeaf65c3
commit f176fca2bd
15 changed files with 472 additions and 46 deletions
+31 -1
View File
@@ -39,6 +39,11 @@ outputs:
# workflow): DEALSAGE_FUNCTIONS_URL, SUPABASE_URL, SUPABASE_ANON_KEY, and either
# CUSTOM_APPS_WORKER_URL (upload through the Worker) or R2_ACCOUNT_ID,
# R2_BUCKET, R2_ACCESS_KEY_ID, R2_SECRET_ACCESS_KEY (S3 upload).
#
# Gitea shows this whole action as one step of the job, so the scripts report
# the steps below to DealSage themselves (lib.sh, "Pipeline steps") and the
# build page in the app hub lists them. PIPELINE_STEPS in lib.sh names them in
# this order; keep the two in step.
runs:
using: composite
steps:
@@ -50,6 +55,12 @@ runs:
shell: bash
run: bash "${{ github.action_path }}/scripts/manifest.sh"
- name: Record the build
shell: bash
env:
PUBLISH_TOKEN: ${{ inputs.publish-token }}
run: bash "${{ github.action_path }}/scripts/start-build.sh"
- name: Set up Node.js
uses: actions/setup-node@v4
with:
@@ -57,7 +68,10 @@ runs:
- name: Install dependencies
shell: bash
run: ${{ inputs.install-command }}
env:
PUBLISH_TOKEN: ${{ inputs.publish-token }}
INSTALL_COMMAND: ${{ inputs.install-command }}
run: bash "${{ github.action_path }}/scripts/install.sh"
- name: Checks
shell: bash
@@ -78,3 +92,19 @@ runs:
env:
PUBLISH_TOKEN: ${{ inputs.publish-token }}
run: bash "${{ github.action_path }}/scripts/publish.sh"
- name: Close the build record (no publish)
if: inputs.skip-publish == 'true'
shell: bash
env:
PUBLISH_TOKEN: ${{ inputs.publish-token }}
run: bash "${{ github.action_path }}/scripts/finish-build.sh" checked
# Runs whatever happened above: settles the step list with how the run
# ended and closes a build record no script got to close.
- name: Report the steps
if: always()
shell: bash
env:
PUBLISH_TOKEN: ${{ inputs.publish-token }}
run: bash "${{ github.action_path }}/scripts/finish-steps.sh"