This repository has been archived by the owner on Dec 18, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2
64 lines (51 loc) · 1.62 KB
/
Build-Release.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
name: Build-Release
on:
push:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
if: ${{ github.repository_owner == 'TheIdealShipAU' }}
steps:
- uses: actions/cache@v2
with:
path: |
~/.nuget/packages
~/.cache/bepinex
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
restore-keys: |
${{ runner.os }}-nuget-
- uses: actions/checkout@v2
with:
submodules: true
- name: Collect build info
id: info
uses: actions/github-script@v6
with:
script: |
let version = "1.0.0";
core.setOutput(ReleaseVersion, version);
- name: install wget
run: sudo apt install wget
- name: download BepInEx
run: wget https://builds.bepinex.dev/projects/bepinex_be/672/BepInEx-Unity.IL2CPP-win-x86-6.0.0-be.672%2B472e950.zip
- name: BepInEx
run: unzip BepInEx-Unity.IL2CPP-win-x86-6.0.0-be.672+422e950.zip -d ./NextShipRelease/
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 8.x
- name: build
run: dotnet build NextShip/NextShip.csproj --configuration Release
- name: path
run: sudo chmod -R 777 ./NextShipRelease
- name: upload NextShip
uses: actions/upload-artifact@v3
with:
name: NextShip.dll
path: NextShip/bin/Release/net8.0/NextShip.dll
- name: upload TheIdealShip
uses: actions/upload-artifact@v3
with:
name: NextShip
path: ./NextShipRelease