-
Notifications
You must be signed in to change notification settings - Fork 305
108 lines (90 loc) · 3.19 KB
/
dotnet.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
# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
name: .NET
on:
push:
branches: [ "3.8.2" ]
pull_request:
branches: [ "3.8.2" ]
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Build Windows Binary for Tutorial/BasicCameraExample
run: dotnet build Tutorials/BasicCameraExample/BasicCameraExample.sln
- name: Archive Tutorial/BasicCameraExample
uses: actions/upload-artifact@v4
with:
name: BasicCameraExample
path: Tutorials/BasicCameraExample/**
include-hidden-files: true
- name: Build Windows Binary for AutoPong
run: dotnet build AutoPong/AutoPong.WindowsDX/AutoPong.WindowsDX.csproj
- name: Archive AutoPong
uses: actions/upload-artifact@v4
with:
name: AutoPong
path: AutoPong/**
include-hidden-files: true
- name: Build Windows Binary for FuelCell
run: dotnet build FuelCell/FuelCell.WindowsDX/FuelCell.WindowsDX.csproj
- name: Archive FuelCell
uses: actions/upload-artifact@v4
with:
name: FuelCell
path: FuelCell/**
include-hidden-files: true
- name: Build Windows Binary for NeonShooter
run: dotnet build NeonShooter/NeonShooter.WindowsDX/NeonShooter.WindowsDX.csproj
- name: Archive NeonShooter
uses: actions/upload-artifact@v4
with:
name: NeonShooter
path: NeonShooter/**
include-hidden-files: true
- name: Build Windows Binary for Platformer2D
run: dotnet build Platformer2D/Platformer2D.WindowsDX/Platformer2D.WindowsDX.csproj
- name: Archive Platformer2D
uses: actions/upload-artifact@v4
with:
name: Platformer2D
path: Platformer2D/**
include-hidden-files: true
- name: Build ShipGame COntent Processor in Release mode
run: dotnet build ShipGame/ShipGame.Dependencies/NormalMappingModelProcessor/NormalMappingModelProcessor.csproj --configuration Release
- name: Build Windows Binary for ShipGame
run: dotnet build ShipGame/ShipGame.WindowsDX/ShipGame.WindowsDX.csproj
- name: Archive ShipGame
uses: actions/upload-artifact@v4
with:
name: ShipGame
path: ShipGame/**
include-hidden-files: true
deploy:
name: Deploy
needs: [ build ]
runs-on: ubuntu-latest
if: ${{ github.event_name == 'push' }}
permissions:
packages: write
contents: write
steps:
- name: Clone Repository
uses: actions/checkout@v4
- name: Expose GitHub Runtime
uses: crazy-max/ghaction-github-runtime@v3
- name: Make a Release
if: github.ref_type == 'tag'
uses: ncipollo/release-action@v1
with:
name: 'MonoGame ${{ github.ref_name }}'
tag: ${{ github.ref_name }}
allowUpdates: true
removeArtifacts: true
artifacts: "*.zip"
token: ${{ secrets.GITHUB_TOKEN }}