Skip to content

Commit

Permalink
fixed env
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreasBrostrom committed Aug 31, 2024
1 parent 2dc67d6 commit 6a5866c
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
steamcmd.exe +login "$env:STEAM_USERNAME" "$env:STEAM_PASSWORD" +workshop_build_item payload.vdf +quit

0 comments on commit 6a5866c

Please sign in to comment.