-
Notifications
You must be signed in to change notification settings - Fork 9
48 lines (39 loc) · 1.13 KB
/
development.yml
File metadata and controls
48 lines (39 loc) · 1.13 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
name: development
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
- uses: git-actions/set-user@v1
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Build
working-directory: ./UnityEditorPatch
run: |
buildFolder="build/"
targetFolder="./build/EditorPatch~"
dotnet publish UnityEditorPatch.csproj -c Release --no-self-contained -o $buildFolder
mkdir $targetFolder
mv ./build/UnityEditorPatch.dll $targetFolder
mv ./build/UnityEditorPatch.runtimeconfig.json $targetFolder
- name: Assemble Package
run: |
mkdir package
mv ./UnityEditorPatch/build/EditorPatch~ ./package
mv ./UnityCSharpPatch/Packages/com.kandreyc.unity-csharp-patch/** ./package
- name: Publish Artifacts
uses: actions/upload-artifact@v4
with:
name: package
path: ./package/**
retention-days: 1