-
Notifications
You must be signed in to change notification settings - Fork 2
41 lines (33 loc) · 967 Bytes
/
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
name: Release
on:
release:
types: [published]
workflow_dispatch:
pull_request:
jobs:
nuget:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
8.0.x
- name: Build Release
run: dotnet build Reown.NoUnity.slnf -c Release --restore
- name: Pack nugets
run: dotnet pack Reown.NoUnity.slnf -c Release --no-build --output .
- name: List files
run: tree -L 3
# - name: Push to NuGet
# run: dotnet nuget push "*.nupkg" --api-key ${{secrets.nuget_api_key}} --source https://api.nuget.org/v3/index.json
- name: Upload build artifacts
uses: actions/upload-artifact@v3
with:
name: build-artifacts
path: |
**/bin/**/*.dll
!**/Tests/**/bin/**/*.dll