-
Notifications
You must be signed in to change notification settings - Fork 9
51 lines (47 loc) · 1.5 KB
/
publish.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Publish
run-name: Publishing ${{github.ref_name}} to ${{ inputs.environment }}
on:
workflow_dispatch:
inputs:
environment:
description: "Selected deploy environment"
required: true
default: "dev"
type: choice
options:
- dev
- live
jobs:
publish:
name: Publish to steam workshop
runs-on: windows-latest
steps:
- name: Checkout the source code
uses: actions/checkout@v4
- name: Setup HEMTT
uses: arma-actions/hemtt@v1
- name: Setup steamcmd
uses: CyberAndrii/setup-steamcmd@v1
- name: Obtaining release
if: ${{ inputs.environment == 'live' }}
run: |
.\tools\deploy-getRelease.ps1 ${{github.ref_name}}
Get-ChildItem -Path . -ErrorAction SilentlyContinue
- name: Deploy release build to workshop
if: ${{ inputs.environment == 'live' }}
run: |
Write-Host "Yey i did it!"
env:
ENVIRONMENT: ${{ inputs.environment }}
- name: Run HEMTT build
if: ${{ inputs.environment == 'dev' }}
run: |
hemtt build
env:
ENVIRONMENT: ${{ inputs.environment }}
- name: Deploy dev build to workshop
if: ${{ inputs.environment == 'dev' }}
run: |
steamcmd.exe +login $env:STEAM_USERNAME $env:STEAM_PASSWORD +workshop_build_item D:\a\7CavAddon\7CavAddon\resources\dev-payload.vdf +quit
env:
ENVIRONMENT: ${{ inputs.environment }}