-
Notifications
You must be signed in to change notification settings - Fork 15
32 lines (29 loc) · 1.08 KB
/
nuget-preview.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
name: AspNetCore.Hashids Nuget Preview
on:
workflow_dispatch:
jobs:
publish:
env:
build_configuration: Release
version_suffix: -preview${{ github.run_number }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.100
- name: Install dependencies
run: dotnet restore
- name: Build
run: dotnet build --configuration $build_configuration --no-restore
- name: Test
run: dotnet test --no-restore --verbosity normal
- name: Pack
run: dotnet pack ./src/AspNetCore.Hashids/AspNetCore.Hashids.csproj -c $build_configuration --version-suffix $version_suffix --no-build --include-source --include-symbols -o ./artifacts
- name: Setup NuGet
uses: NuGet/setup-nuget@v1.0.5
with:
nuget-version: latest
- name: Publish
run: dotnet nuget push ./artifacts/AspNetCore.Hashids.*.nupkg -k ${{ secrets.nuget_api_key }} -s https://api.nuget.org/v3/index.json --skip-duplicate