-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (36 loc) · 1.2 KB
/
DotnetTools.yml
File metadata and controls
42 lines (36 loc) · 1.2 KB
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
39
40
41
42
name: DotnetTools
on:
workflow_dispatch:
push:
branches:
- master
paths:
- 'DotnetTools/AwsS3BatchUpload/**'
- '.github/workflows/DotnetTools.yml'
jobs:
tools-nuget:
runs-on: ubuntu-latest
strategy:
matrix:
dotnet-version: [ '9.0' ]
env:
working-directory: ./DotnetTools/AwsS3BatchUpload
package-name: Vishel.AWS.S3.Tools
steps:
- uses: actions/checkout@v6
- name: Setup .NET Core SDK ${{ matrix.dotnet-version }}
uses: actions/setup-dotnet@v5
with:
dotnet-version: ${{ matrix.dotnet-version }}
include-prerelease: true
- name: Install dependencies
run: dotnet restore
working-directory: ${{env.working-directory}}
- name: Build
run: dotnet build --configuration Release --no-restore
working-directory: ${{env.working-directory}}
- name: Pack NuGet package
run: dotnet pack -c Release
working-directory: ${{env.working-directory}}
- name: Publish the package to nuget.org
run: dotnet nuget push **/${{env.package-name}}.*.nupkg -k ${{secrets.NUGET_ACCESS_TOKEN}} -s https://api.nuget.org/v3/index.json --skip-duplicate