-
-
Notifications
You must be signed in to change notification settings - Fork 16
46 lines (43 loc) · 1.23 KB
/
main.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
name: .NET
on:
push:
branches: [ main ]
paths:
- 'SiraUtil/**'
- 'SiraUtil.sln'
- '.github/workflows/main.yml'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.x
- name: Acquire SIRA References
uses: ProjectSIRA/[email protected]
with:
manifest: ./SiraUtil/manifest.json
sira-server-code: ${{ secrets.SIRA_SERVER_CODE }}
- name: Acquire Mod References
uses: Goobwabber/[email protected]
with:
manifest: ./SiraUtil/manifest.json
- name: Build
id: Build
env:
FrameworkPathOverride: /usr/lib/mono/4.8-api
run: dotnet build SiraUtil/SiraUtil.csproj --configuration Release
- name: Git Status
run: git status
- name: Echo File Name
run: echo $BUILDTEXT \($ASSEMBLYNAME\)
env:
BUILDTEXT: Filename=${{ steps.Build.outputs.filename }}
ASSEMBLYNAME: AssemblyName=${{ steps.Build.outputs.assemblyname }}
- name: Upload Artifact
uses: actions/upload-artifact@v1
with:
name: SiraUtil
path: ${{ steps.Build.outputs.artifactpath }}