-
Notifications
You must be signed in to change notification settings - Fork 9
37 lines (29 loc) · 979 Bytes
/
release.yml
File metadata and controls
37 lines (29 loc) · 979 Bytes
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
name: Release
on:
push:
tags:
- "v*"
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Setup .NET
uses: actions/setup-dotnet@b2ace4b12f4cec1b96b6361ff2694ba9e931ceb4 # v3.3.1
with:
dotnet-version: "8.0.x"
- name: Restore dependencies
run: dotnet restore
working-directory: ./
- name: Build Release
run: dotnet build -c Release --no-restore
working-directory: ./
- name: Push to NuGet
run: dotnet nuget push "./Thirdweb/bin/Release/*.nupkg" --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json
- name: Upload build artifacts
uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1
with:
name: build-artifacts
path: |
./Thirdweb/bin/**/**/*.dll