From 44ef144cd294ab7c43e3f31dc485cfae916b5bf1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Brostr=C3=B6m=2EA=20=7C=20Evul?= Date: Mon, 29 Jul 2024 12:28:38 +0200 Subject: [PATCH] Advanced deploy (#260) * Advanced deploy * fidxed missing env --- .github/workflows/deploy.yml | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 98dd73af..034c1c89 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -20,10 +20,17 @@ jobs: - name: Setup HEMTT uses: arma-actions/hemtt@v1 - name: Run HEMTT release - run: hemtt release - - name: DEBUG ending... + if: ${{ inputs.environment == 'live' }} run: | - Write-Host "Environment: $ENVIRONMENT" - Get-Content -Path .hemttout\ + hemtt release + Get-ChildItem -Path .hemttout\ env: - ENVIRONMENT: ${{ inputs.environment }} \ No newline at end of file + ENVIRONMENT: ${{ inputs.environment }} + + - name: Run HEMTT build + if: ${{ inputs.environment == 'dev' }} + run: | + hemtt release + Get-ChildItem -Path .hemttout\ + env: + ENVIRONMENT: ${{ inputs.environment }}