-
-
Notifications
You must be signed in to change notification settings - Fork 4
49 lines (38 loc) · 1.05 KB
/
release.workflow.yml
File metadata and controls
49 lines (38 loc) · 1.05 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
name: release
on:
push:
pull_request:
branches: [ main ]
paths:
- '**.cs'
- '**.csproj'
env:
DOTNET_VERSION: '6.0'
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET Core
uses: actions/setup-dotnet@v2
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
- name: Install dependencies
run: dotnet restore
- name: Build
run: dotnet build SlimeBattleSystem/*.csproj --configuration Release
- name: Release
run: |
yes | cp -r SlimeBattleSystem/bin/Release/netstandard2.0/SlimeBattleSystem.dll UnityPackage/Libs/
- name: Setup git
run: |
git config user.name "joshalexjacobs-bot"
git config user.email "<>"
- name: Git commit changes
run: |
git add UnityPackage/Libs/
git commit -m "Updated SlimeBattleSystem.dll [skip ci]" || exit 0
git push origin main
- name: Git push subtree
run: |
git push origin `git subtree split --prefix UnityPackage main`:upm --force