-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (25 loc) · 818 Bytes
/
push.yml
File metadata and controls
31 lines (25 loc) · 818 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
name: Push actions
on:
workflow_dispatch:
push:
paths:
- 'ReturnTaskDirectlyAnalyzer/ReturnTaskDirectlyAnalyzer.csproj'
branches:
- master
jobs:
nuget_push:
name: Pushes the updated package to NuGet.
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/checkout@v2
- name: Setup .NET 6
uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0.x'
- name: Build project
run: dotnet build ReturnTaskDirectlyAnalyzer/ReturnTaskDirectlyAnalyzer.csproj -c Release
- name: Run tests
run: dotnet test -c Release
- name: Push package
run: dotnet nuget push ReturnTaskDirectlyAnalyzer/bin/Release/*.nupkg -k ${{ secrets.NUGET_KEY }} -s https://api.nuget.org/v3/index.json