-
-
Notifications
You must be signed in to change notification settings - Fork 35
146 lines (146 loc) · 5.15 KB
/
deploy-steam.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
name: Build BurningKnight
on:
push:
branches:
- release
- dev
jobs:
build:
name: Build BurningKnight
runs-on: windows-2019
steps:
- name: Download MonoGame
shell: powershell
run: |
dotnet --info
dotnet tool install -g dotnet-mgcb
# wget -O MonoGameSetup.exe https://github.com/MonoGame/MonoGame/releases/download/v3.7/MonoGameSetup.exe
#- name: Install MonoGame
# shell: cmd
# run: |
# MonoGameSetup.exe /S
- name: Checkout
uses: actions/checkout@v1
- name: Install NuGet
shell: powershell
run: |
wget -O nuget.exe https://dist.nuget.org/win-x86-commandline/latest/nuget.exe
- name: Install NuGet packages
shell: bash
run: |
ls -l
mkdir packages
cd packages
../nuget.exe install ../Lens/packages.config
../nuget.exe install ../Aseprite/packages.config
../nuget.exe install ../BurningKnight/packages.config
../nuget.exe install ../Desktop/packages.config
../nuget.exe install ../MonoGamePico8/packages.config
../nuget.exe install ../Pico8Emulator/packages.config
ls -l
cd ..
echo $GITHUB_WORKSPACE
./nuget.exe restore ./VelcroPhysics/packages.config -SolutionDirectory $GITHUB_WORKSPACE
dotnet restore
- name: Building Aseprite Extention
shell: bash
run: |
cd $GITHUB_WORKSPACE
ls -l
"C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/MSBuild/Current/Bin/MSBuild.exe" ./Aseprite/Aseprite.csproj
ls -l
- name: Building Resources
shell: bash
run: |
cd $GITHUB_WORKSPACE/BurningKnight/Content/
mgcb "Content.mgcb" /platform:DesktopGL
ls -l
- name: Building Solution
shell: bash
run: |
cd $GITHUB_WORKSPACE
"C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/MSBuild/Current/Bin/MSBuild.exe" ./Lens.sln /property:Configuration=Release
cd $GITHUB_WORKSPACE/Desktop/bin/Release
git init
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add *
git commit -m "Added changes"
cd $GITHUB_WORKSPACE
- name: Push Build to egordorichev/bk_builds
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_KEY }}
force: true
repository: "egordorichev/bk_builds"
directory: "./Desktop/bin/Release/"
branch: "master"
# - name: Upload Windows Version to Itch
# shell: powershell
# env:
# BUTLER_API_KEY: ${{ secrets.BUTLER_API_KEY }}
# run: |
# ./butler.exe push ./Windows/ egordorichev/bkt:windows
# - name: Prepare Linux Version
# shell: bash
# run: |
# mkdir ./Linux
# cp -rf ./Windows/* ./Linux/
# git clone https://github.com/egordorichev/bk_linux_kick
# cp -rf ./bk_linux_kick/* ./Linux/
# cd ./Linux
# ls
# cd ..
#
# - name: Upload Linux Version to Itch
# shell: powershell
# env:
# BUTLER_API_KEY: ${{ secrets.BUTLER_API_KEY }}
# run: |
# ./butler.exe push ./Linux/ egordorichev/bkt:linux
#
# - name: Upload windows build to linux
# uses: actions/upload-artifact@v1
# with:
# name: Windows
# path: Windows
#
# - name: Upload linux build to linux
# uses: actions/upload-artifact@v1
# with:
# name: Linux
# path: Linux
#
# upload:
# needs: build
# name: Push BurningKnight to Steam
# runs-on: ubuntu-18.04
# steps:
# - name: Download windows
# uses: actions/download-artifact@v1
# with:
# name: Windows
# - name: Download linux
# uses: actions/download-artifact@v1
# with:
# name: Linux
# - name: Upload depots to steam
# shell: bash
# run: |
# git clone "https://${{ secrets.GITHUB_KEY }}@github.com/egordorichev/steam_builder.git"
# mkdir ~/.steam/steam/ -p
# cp ./steam_builder/ssfn2631791037380626867 ~/.steam/steam/
# ls -l ~/.steam/steam
# mkdir -p ./steam_builder/tools/ContentBuilder/builder/public/
# cp ./steam_builder/steambootstrapper_english.txt ./steam_builder/tools/ContentBuilder/builder/public/
# ls -l ./steam_builder/tools/ContentBuilder/builder/public/
# cd steam_builder/tools/ContentBuilder
# mkdir ./content/Windows
# cp ../../../Windows/* ./content/Windows/ -r
# ls -l ./content/Windows/
# mkdir ./content/Linux
# cp ../../../Linux/* ./content/Linux/ -r
# ls -l ./content/Linux/
# chmod a+x builder_linux/steamcmd.sh
# chmod a+x builder_linux/linux32/steamcmd
# builder_linux/steamcmd.sh +login "${{ secrets.STEAM_USERNAME }}" "${{ secrets.STEAM_PASSWORD }}" +run_app_build ../scripts/app_build_851150.vdf +quit