From 60b287251b90578f4a1accfbec2b9c22186ca0b8 Mon Sep 17 00:00:00 2001 From: bip production <119274726+bipproduction@users.noreply.github.com> Date: Sun, 23 Feb 2025 22:36:01 +0800 Subject: [PATCH] Update build.yml --- .github/workflows/build.yml | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d8714c53..4180b9af 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,12 +1,16 @@ name: Build And Save Log on: - push: - branches: - - main - pull_request: - branches: - - main + workflow_dispatch: + inputs: + environment: + description: "Target environment (e.g., staging, production)" + required: true + default: "staging" + version: + description: "Version to deploy" + required: false + default: "latest" env: APP_NAME: desa-darmasaba-action @@ -119,7 +123,7 @@ jobs: source: "." target: "/var/www/projects/${{ env.APP_NAME }}/releases/${{ env.APP_VERSION }}" - # Set up environment variables + # Set up environment variables - name: Set up environment variables run: | rm -r .env