-
Notifications
You must be signed in to change notification settings - Fork 7
38 lines (30 loc) · 1012 Bytes
/
publish.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: Publish
on:
workflow_dispatch:
jobs:
publish:
env:
BUILD_CONFIG: Release
name: Test and publish
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Set up .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7
- name: Install dependencies
working-directory: src
run: dotnet restore
- name: Build
working-directory: src
run: dotnet build -c ${{ env.BUILD_CONFIG }} --no-restore -p:ContinuousIntegrationBuild=true
- name: Test
working-directory: src
run: dotnet test -c ${{ env.BUILD_CONFIG }} --no-restore
- name: Publish
working-directory: src
run: |
dotnet pack -c ${{ env.BUILD_CONFIG }} --no-build
dotnet nuget push --skip-duplicate Nethermind.Verkle/bin/${{ env.BUILD_CONFIG }}/*.nupkg -k ${{ secrets.NUGET_TEST_API_KEY }} -s https://apiint.nugettest.org/v3/index.json