generated from Deathbloodjr/RF.ModTemplate
-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (43 loc) · 1.26 KB
/
build.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
name: Build TekaTeka
on:
push:
branches:
- main
- dev
pull_request:
branches:
- main
- dev
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install .NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: 6.0.x
- name: Download Dependencies
env:
GAME_DEPENDENCIES_URL: ${{ secrets.GAME_DEPENDENCIES_URL }}
run: |
wget -O dependencies.zip $GAME_DEPENDENCIES_URL -nv
unzip dependencies.zip -d dependencies
- name: Setup Project
run: |
dotnet nuget add source https://nuget.bepinex.dev/v3/index.json
dotnet nuget add source https://nuget.samboy.dev/v3/index.json
dotnet restore TekaTeka.sln
- name: Build Release
run: |
dotnet build "/p:GameDir=$(realpath ./dependencies/);WORKER=GitHub" --configuration Release TekaTeka.sln
- name: Upload Release Artifact
uses: actions/upload-artifact@v4
with:
name: RF.TekaTeka Release
path: |
./TekaTeka/bin/Release/net6.0/RF.TekaTeka.dll
./TekaTeka/bin/Release/net6.0/RF.TekaTeka.pdb