forked from Bob-Murphy/A3-Antistasi-1.4
-
-
Notifications
You must be signed in to change notification settings - Fork 154
55 lines (47 loc) · 1.54 KB
/
UpdateDevBuild.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
52
53
54
55
name: Update dev build
on:
workflow_dispatch:
inputs:
workshopid:
type: choice
description: 'Options: Dev 1, Dev 2'
options:
- 2729074499 #dev 1
- 2873632521 #dev 2
jobs:
build:
runs-on: windows-latest
timeout-minutes: 5
steps:
- name: Checkout the code
uses: actions/[email protected]
- name: Increment version locally
run: chmod +x ./tools/incrementVersion.js &&
node ./tools/incrementVersion.js -b ${{github.sha}}
- name: Build addons
run: '.\tools\Builder\buildAddons.ps1 -WorkshopID ${{github.event.inputs.workshopid}} -modFileName mod_dev.cpp'
- name: Upload build addon artifact
uses: actions/[email protected]
with:
name: A3A
path: build\A3A
upload:
runs-on: ubuntu-latest
timeout-minutes: 10
needs: [build]
steps:
- name: Download addon artifact
uses: actions/[email protected]
with:
name: A3A
path: A3A
- name: Publish to Steam Workshop
uses: arma-actions/[email protected]
with:
appId: '107410' # default
itemId: ${{github.event.inputs.workshopid}} # https://steamcommunity.com/sharedfiles/filedetails/?id=[...]]
contentPath: 'A3A'
changelog: '[url=https://github.com/official-antistasi-community/A3-Antistasi/commit/${{github.sha}}]Update from branch: ${{github.REF_NAME}}[/url].'
env:
STEAM_USERNAME: ${{ secrets.STEAM_USERNAME }}
STEAM_PASSWORD: ${{ secrets.STEAM_PASSWORD }}