-
Notifications
You must be signed in to change notification settings - Fork 11
38 lines (34 loc) · 938 Bytes
/
dotnet.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
name: .NET
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
env:
SERVER_ADDRESS: ${{ secrets.SERVER_ADDRESS }}
TOKEN: ${{ secrets.TOKEN }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Pull submodules
run: git submodule update --init --recursive --depth 1
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 7.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore
- uses: "authzed/action-spicedb@v1"
with:
version: "latest"
- name: Test
run: dotnet test --verbosity normal
- name: Publish
uses: brandedoutcast/publish-nuget@v2.5.2
with:
PROJECT_FILE_PATH: SpiceDb/SpiceDb.csproj
NUGET_KEY: ${{secrets.NUGET_API_KEY}}