-
Notifications
You must be signed in to change notification settings - Fork 6
35 lines (33 loc) · 1.1 KB
/
pack.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
name: Nuget package
on:
workflow_dispatch:
jobs:
deploy:
name: Pack nuget package (for code signing)
runs-on: ubuntu-latest
strategy:
matrix:
dotnet: [5.0.408]
timeout-minutes: 10
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Setup dotnet
id: dotnet-setup
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ matrix.dotnet }}
- name: Override global.json
run: |
echo '{"sdk":{"version": "${{ steps.dotnet-setup.outputs.dotnet-version }}"}}' > ./global.json
- name: Install project dependencies
run: |
dotnet restore what3words.dotnet.wrapper/what3words.dotnet.wrapper.csproj --locked-mode
- name: Pack nuget package
run: |
dotnet pack what3words.dotnet.wrapper/what3words.dotnet.wrapper.csproj --configuration:"Release" --no-restore --output "./artifacts" --include-symbols
- name: Upload nuget package
uses: actions/upload-artifact@v4
with:
name: what3words.dotnet.wrapper
path: ./artifacts/*.nupkg