-
Notifications
You must be signed in to change notification settings - Fork 21
67 lines (56 loc) · 2.08 KB
/
release_stable_sse.yaml
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
name: release_stable_sse
on:
push:
tags:
- 'v*.*.*'
env:
build-mode: Release # Release | Debug
# Explicit cache location to cache only nuget dependencies for this project.
NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages
jobs:
build:
runs-on: windows-latest
strategy:
matrix:
dotnet-version: ["7.0.x"]
steps:
# Ref: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net#building-and-testing-your-code
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ matrix.dotnet-version }}
- name: .NET Cache
# If there is a cache here, it is restored, otherwise it is cached at the end.
uses: actions/cache@v4
with:
# - Specify the same as `NUGET_PACKAGES`
path: |
${{ github.workspace }}/.nuget/packages
${{ github.workspace }}/PandoraPlus/bin
${{ github.workspace }}/PandoraPlus/obj
${{ github.workspace }}/third_party/HKX2-Library/HKX2 WPF/bin
${{ github.workspace }}/third_party/HKX2-Library/HKX2 WPF/obj
${{ github.workspace }}/third_party/XML-Cake/XML Cake/bin
${{ github.workspace }}/third_party/XML-Cake/XML Cake/obj
key: nuget-${{ runner.os }}-${{ matrix.dotnet-version }}
restore-keys: |
nuget-${{ runner.os }}-
- name: Build
run: dotnet build "./PandoraPlus.sln" --configuration ${{ env.build-mode }}
- name: Upload a Build Artifact
uses: actions/upload-artifact@v4
with:
name: Pandora.Behaviour.Engine
path: |
./PandoraPlus/bin/${{ env.build-mode }}/net7.0-windows
- name: Download
uses: actions/download-artifact@v4
with:
name: Pandora.Behaviour.Engine
- name: Upload Release
uses: softprops/[email protected]
with:
files: Pandora.Behaviour.Engine.zip