-
Notifications
You must be signed in to change notification settings - Fork 66
62 lines (51 loc) · 2.01 KB
/
glue.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
name: FlatRedBall Editor
on:
push:
branches: [ "NetStandard" ]
pull_request:
branches: [ "NetStandard" ]
jobs:
build:
strategy:
matrix:
# configuration: [Debug, Release]
# for now, let's just do debug...
configuration: [Debug]
runs-on: windows-latest # For a list of available runner types, refer to
# https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on
steps:
- name: Checkout FRB
uses: actions/checkout@v4
with:
fetch-depth: 1
path: 'FlatRedBall'
- name: Checkout Gum
uses: actions/checkout@v4
with:
repository: ${{ github.repository_owner }}/Gum
fetch-depth: 1
path: 'Gum'
# Install the .NET Core workload
- name: Install .NET Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
# Add MSBuild to the PATH: https://github.com/microsoft/setup-msbuild
- name: Setup MSBuild.exe
uses: microsoft/setup-msbuild@v1.0.2
- name: Build BuildServerUploader
run: dotnet build -c Debug 'FlatRedBall\FRBDK\BuildServerUploader\BuildServerUploader.sln'
- name: Change version numbers
run: .\FlatRedBall\FRBDK\BuildServerUploader\BuildServerUploaderConsole\bin\x86\Debug\BuildServerUploaderConsole.exe changefrbdkversion
- name: Build
run: dotnet build -c ${{ matrix.configuration }} 'FlatRedBall\FRBDK\Glue\Glue with All.sln'
- name: Zip and upload templates
env: # Or as an environment variable
username: ${{ secrets.FTPUSERNAME }}
password: ${{ secrets.FTPPASSWORD }}
run: .\FlatRedBall\FRBDK\BuildServerUploader\BuildServerUploaderConsole\bin\x86\Debug\BuildServerUploaderConsole.exe zipanduploadfrbdk "${{ env.username }}" "${{ env.password }}"
- name: Package
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.configuration }}
path: FRB/FRBDK/Glue/Glue/bin/${{ matrix.configuration }}