-
Notifications
You must be signed in to change notification settings - Fork 0
29 lines (29 loc) · 944 Bytes
/
push.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
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Set up dotnet
uses: actions/setup-dotnet@v1
with:
dotnet-version: '8.0.100'
include-prerelease: false
- name: Checkout
uses: actions/checkout@v2
- name: Build
run: dotnet build src/DevilDaggersInfo.Web.sln -c Release
- name: Test
run: dotnet test src/DevilDaggersInfo.Web.sln -c Release --no-build
- name: Pack
run: |
dotnet pack src/DevilDaggersInfo.Web.ApiSpec.Admin -c Release -o .
dotnet pack src/DevilDaggersInfo.Web.ApiSpec.Main -c Release -o .
dotnet pack src/DevilDaggersInfo.Web.ApiSpec.Tools -c Release -o .
- name: Push
run: dotnet nuget push *.nupkg -s nuget.org -k ${NUGET_SECRET} -n --skip-duplicate
env:
NUGET_SECRET: ${{ secrets.NUGET_SECRET }}