-
Notifications
You must be signed in to change notification settings - Fork 6
80 lines (64 loc) · 2.32 KB
/
interface-cd.yaml
File metadata and controls
80 lines (64 loc) · 2.32 KB
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
name: Interface CD
on:
push:
tags:
- '*'
jobs:
build-interface:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
dotnet-version: '9.x'
- name: Restore packages
run: dotnet restore Interface/FEZRepacker.Interface.csproj
- name: Build for Windows
run: dotnet publish Interface/FEZRepacker.Interface.csproj -c Release -r win-x64 --self-contained
- name: Build for Linux
run: dotnet publish Interface/FEZRepacker.Interface.csproj -c Release -r linux-x64 --self-contained
- name: Upload Windows artifact
uses: actions/upload-artifact@v4
with:
name: FEZRepacker.Interface.Windows
path: Interface/bin/Release/net6.0/win-x64/publish/FEZRepacker.Interface.exe
if-no-files-found: error
- name: Upload Linux artifact
uses: actions/upload-artifact@v4
with:
name: FEZRepacker.Interface.Linux
path: Interface/bin/Release/net6.0/linux-x64/publish/FEZRepacker.Interface
if-no-files-found: error
release:
if: github.repository == 'FEZModding/FEZRepacker'
needs: [build-interface]
runs-on: ubuntu-latest
steps:
- name: Download Linux Build
uses: actions/download-artifact@v4
with:
name: FEZRepacker.Interface.Linux
- name: Rename Linux Build
run: mv FEZRepacker.Interface FEZRepacker
- name: Download Windows Build
uses: actions/download-artifact@v4
with:
name: FEZRepacker.Interface.Windows
- name: Rename Windows Build
run: mv FEZRepacker.Interface.exe FEZRepacker.exe
- name: Create Release
uses: softprops/action-gh-release@v1
with:
body: |
## Usage
Download one of the following:
- `FEZRepacker.exe` - Windows standalone command-line interface
- `FEZRepacker` - Linux standalone command-line interface
...and consult the README.md for usage details.
Additionally, Core library can be accessed as a NuGet package: https://www.nuget.org/packages/FEZRepacker.Core
## Changelog
TODO
files: |
FEZRepacker.exe
FEZRepacker
fail_on_unmatched_files: true