From 6a5866c80487050ad368739fe148f8eda44fcc84 Mon Sep 17 00:00:00 2001 From: AndreasBrostrom Date: Sat, 31 Aug 2024 15:39:36 +0200 Subject: [PATCH] fixed env --- .github/workflows/publish.yml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index ef6bd65b..f517093a 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -25,30 +25,32 @@ jobs: uses: CyberAndrii/setup-steamcmd@v1 - name: Obtaining release + env: + ENVIRONMENT: ${{ inputs.environment }} if: ${{ inputs.environment == 'live' }} run: | .\tools\deploy-getRelease.ps1 ${{github.ref_name}} Get-ChildItem -Path . -ErrorAction SilentlyContinue - name: Deploy release build to workshop + env: + ENVIRONMENT: ${{ inputs.environment }} if: ${{ inputs.environment == 'live' }} run: | Write-Host "Yey i did it!" - env: - ENVIRONMENT: ${{ inputs.environment }} - name: Run HEMTT build + env: + ENVIRONMENT: ${{ inputs.environment }} if: ${{ inputs.environment == 'dev' }} run: | hemtt build - env: - ENVIRONMENT: ${{ inputs.environment }} + - name: Deploy dev build to workshop env: + ENVIRONMENT: ${{ inputs.environment }} STEAM_USERNAME: ${{ secrets.STEAM_USERNAME }} STEAM_PASSWORD: ${{ secrets.STEAM_PASSWORD }} if: ${{ inputs.environment == 'dev' }} run: | Copy-Item "resources\dev-payload.vdf" payload.vdf - steamcmd.exe +login "$env:STEAM_USERNAME" "$env:STEAM_PASSWORD" +workshop_build_item payload.vdf +quit - env: - ENVIRONMENT: ${{ inputs.environment }} \ No newline at end of file + steamcmd.exe +login "$env:STEAM_USERNAME" "$env:STEAM_PASSWORD" +workshop_build_item payload.vdf +quit \ No newline at end of file